How-To Guide

How to Run Failure Injection Drills

Write hypotheses first, inject faults with bounded blast radius, auto-stop on guardrail breach, and convert findings into tracked fixes.

On this page

  1. Introduction
  2. Steady state before chaos
  3. Hypotheses worth testing
  4. Inject with bounded blast radius
  5. Guardrails and automatic abort
  6. Observe beyond the dashboard
  7. Close the loop with tracked fixes
  8. Common pitfalls
  9. Conclusion

Introduction

Every sufficiently complex system contains failure modes nobody has witnessed: the dependency that has never been down, the retry storm that has never fired, the failover that has never executed outside a design document. Back-of-envelope resilience claims, this is highly available, we fail over automatically, are hypotheses, and untested hypotheses have a way of being discovered wrong during the worst possible quarter. Failure injection drills are the practice of testing them deliberately: define the system’s measurable steady state, form a hypothesis about a specific failure, inject that failure under guardrails, and observe whether reality matches the hypothesis. The craft is in the discipline, not the destruction, teams that inject faults without hypotheses and guardrails are not doing chaos engineering, they are doing unplanned outages with paperwork. This tutorial builds the full loop, steady state and hypotheses, injection tooling with bounded blast radius, guardrails with automatic abort, and the follow-up machinery that converts findings into fixes, because a drill whose findings die in a slide deck was an expensive way to learn nothing.

Steady state before chaos

A drill needs a definition of normal to deviate from, and that definition must be numeric and already-tracked, not invented for the occasion. Steady state is the handful of metrics that answer is the system healthy right now: p99 latency per critical route, error rate, throughput, queue depth, replication lag, whatever the service’s on-call dashboard actually pages on. The discipline of writing it down first changes the drill’s character: it becomes a controlled experiment, hypothesis, injection, observation, rather than an adventure. It also surfaces pre-existing problems for free, because a system whose steady state is already violated should not be drilled, it should be fixed, and injecting failure into an unhealthy system conflates the drill’s effects with the standing problem. The steady-state definition is reusable across drills and becomes the guardrail threshold in the next section: the same number that defines healthy is the number whose breach stops the experiment.

Hypotheses worth testing

The hypothesis is a falsifiable claim about behavior under a specific failure, and good ones map to the resilience features the architecture claims to have. When the primary database fails, automatic failover completes within 30 seconds and p99 stays under one second. When the payment dependency returns 500s, the circuit breaker opens and checkout degrades to a queue rather than timing out. When an availability zone disappears, capacity rebalances and throughput drops by at most one third. Each names a mechanism, a trigger, and an expected observable outcome, which is what makes the drill scientific rather than recreational. The hypothesis inventory comes from the architecture documents and incident history: every diagram with a redundant box is a claim, every past incident that was patched with a fix is a claim, and every to-our-knowledge in a design review is a claim begging to be tested. Prioritize by blast radius of being wrong: the claim whose failure would be most expensive is the first drill.

Inject with bounded blast radius

Injection tooling has matured to the point where the hard part is restraint. Chaos Mesh schedules Kubernetes-native faults, network latency and partition, pod kill, IO faults, with selectors that scope by namespace, label, or percentage. AWS Fault Injection Simulator does the same for cloud primitives, stopping instances, throttling APIs, with built-in stop conditions. Local development has toxiproxy for TCP-level latency and drops, which is where drills should be rehearsed first.

apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
 name: drill-payments-latency
spec:
 action: delay
 mode: percent
 value: '10'    # 10% of matching pods only
 selector:
  namespaces: [checkout]
  labelSelectors:
   app: checkout
 delay:
  latency: '2000ms'
 duration: '2m'

The restraint principles: smallest blast radius that still tests the hypothesis, ten percent of pods before all of them, one region before all regions; a fixed duration with automatic cleanup, so an abandoned drill cannot leak a fault into next week; and a kill switch that requires zero permissions, one command or one button, usable by anyone on the drill call without waiting for cluster admin, because the seconds spent acquiring the right to stop an experiment are the seconds the experiment becomes an incident.

Guardrails and automatic abort

Guardrails are what make production drills defensible, and they are three layers deep. Metric guardrails: the steady-state metrics from the first section become thresholds, and the injection platform’s stop conditions, FIS supports them natively, or a small watcher script for other tooling, abort the fault when p99 breaches the threshold or error rate leaves budget. Damage guardrails: the blast radius bounds the worst case structurally, ten percent of pods cannot take down more than what ten percent can take down. Human guardrails: the abort path is documented, rehearsed, and permissionless, and the drill window is scheduled and announced, so the on-call watching the dashboards knows that the anomaly at 14:00 is the drill and the one at 14:37 is not. The pre-drill checklist is short and non-negotiable: steady state green, guardrails live, abort tested, rollback understood, and a no-go condition, any standing incident or degraded dependency, cancels the drill without discussion.

The metric guardrail itself is a small watcher, and it deserves code review like the fault specification:

export async function guardrail(
 metrics: MetricsSource,
 fault: FaultHandle,
 abort: (reason: string) => void,
) {
 const p99 = await metrics.p99('checkout_latency_ms');
 const errorRate = await metrics.rate('checkout_errors');
 if (p99 > 1500) {
  await fault.stop();
  abort('p99 ' + p99 + 'ms exceeded 1500ms threshold');
 } else if (errorRate > 0.05) {
  await fault.stop();
  abort('error rate ' + errorRate + ' exceeded 5% budget');
 }
}

Observe beyond the dashboard

The drill’s value is in the observations, and dashboards show symptoms, not mechanisms. Collect three layers during the window. User-level: the steady-state metrics, plus traces of representative requests that crossed the failure boundary, showing where time went and which fallback fired. System-level: the resilience mechanisms’ own telemetry, circuit breaker state transitions with timestamps, retry counts, pool saturation, failover events, which is the direct evidence of the hypothesis’s mechanism executing or failing to. Third-party level: what the dependency observed from its side, if obtainable, because asymmetric views, we think we timed out, they think we kept hammering, are exactly the misapprehensions drills exist to expose. Record the timeline minute by minute, injection start, first observable effect, mechanism fired or silent, recovery start, steady state regained, because the timestamps are the numbers the hypothesis references. The comparison is then mechanical: did failover complete within 30 seconds, yes or no, and the no case is not a failure of the drill, it is the finding.

Close the loop with tracked fixes

A drill produces one of two outcomes, and both demand paperwork. Hypothesis confirmed: the mechanism behaved as designed, and the artifact is the recorded evidence, timestamps, traces, breaker transitions, which becomes the audit artifact for the next architecture review and the baseline for the next drill of the same hypothesis. Hypothesis violated: the finding, and it must leave the drill as a tracked engineering item, a ticket with severity, the observed deviation, the evidence attached, and an owner, because findings that live in slide decks decay into folklore, everyone remembers that failover was slow once, nobody remembers which fix landed or whether it was verified. Re-drill after the fix, the same hypothesis, the same guardrails, because the fix is itself a hypothesis, the circuit breaker change should cap checkout latency, and closing the loop means the system’s resilience claims are continuously re-validated rather than accumulated like interest on an unbalanced account.

Common pitfalls

  • **Injecting without a hypothesis. ** Faults without claims are recreational breakage; the learning is accidental and unattributable.
  • **Drilling an unhealthy system. ** A violated steady state conflates drill effects with standing problems; fix first.
  • **Unbounded blast radius. ** All-pods, all-region injections maximize damage while testing nothing more than a scoped one.
  • **Guardrails that need permissions. ** A kill switch requiring cluster admin converts seconds of abort into minutes of incident.
  • **Findings that live in slides. ** Untracked findings become folklore; tickets with owners and re-drills are the loop.
  • **One-and-done programs. ** Resilience claims rot as systems change; a drill cadence is a re-validation schedule.

Conclusion

Failure injection drills turn resilience claims from folklore into continuously re-validated facts. Start with the numeric steady state the on-call already pages on, and form hypotheses that map to the mechanisms the architecture claims, failover windows, breaker behavior, capacity rebalancing. Inject with mature tooling under strict restraint, smallest blast radius, fixed duration, automatic stop conditions, and a permissionless kill switch, rehearsed in staging before small production drills. Observe all three layers, user metrics, mechanism telemetry, and the dependency’s view, and record the timeline the hypothesis references. Then close the loop: confirmed hypotheses become audit evidence, violated ones become tracked tickets with re-drills after the fix. The practice is cheap relative to the alternative, which is discovering the hypothesis was wrong during the quarter the dependency actually fails.

Sources: Principles of Chaos Engineering, Chaos Mesh documentation, AWS Fault Injection Simulator.

FAQ

Is this the same as chaos engineering?
Failure injection is the mechanism, and chaos engineering is the discipline around it: hypotheses, steady state, guardrails, and learning. Injecting faults without those is just breaking production with extra steps.
Do drills belong in production?
Staging validates wiring, production validates reality, scheduling, real traffic, real dependencies. Start in staging and graduate small production drills with tiny blast radii, because staging fails to reproduce the failures that matter.
What if the drill causes an outage?
Guardrails are the answer: automatic abort when the steady-state metric breaches its threshold, a small blast radius so damage is bounded, and a kill switch requiring no permissions to use. If an outage happens anyway, the drill found something real, which is the point, but publish the postmortem for the drill too.

Related Examples