Chaos Engineering: Proving Your System Survives Failure Before Production Does It for You


System Design Phase 11: Resilience Engineering
Applied Lesson 66 of 86 14 min read Updated Nov 30, 2026

The checkout team had a circuit breaker on the fraud-scoring call, a fallback that approved low-value orders, and a design doc that said “fraud scoring is a soft dependency.” Everyone believed it. Nobody had tested it.

At 21:10 on a Friday, fraud scoring started answering in 4 seconds instead of 80 ms. The breaker was configured to count errors, not slow calls, so it never opened. The checkout thread pool filled in 40 seconds. The fallback, the one everybody was proud of, never ran once. Checkout was down for 47 minutes while the on-call engineer worked out that the “soft dependency” was hard.

Every piece of that failure could have been found on a Tuesday afternoon by injecting 4 seconds of latency into fraud scoring for one checkout pod, watching for 5 minutes, and stopping. That is chaos engineering: running controlled experiments that inject real-world failures, so you learn how the system actually behaves instead of how the diagram says it behaves.

What it is

Chaos engineering is the discipline of experimenting on a system to build confidence that it can withstand turbulent conditions in production. The key word is experiment. It is not “break things randomly and see”. It is the scientific method applied to resilience:

  1. Define steady state: a measurable output that says the system is healthy, such as checkout success rate or orders per minute.
  2. Form a hypothesis: “steady state will hold when fraud scoring adds 4 s of latency.”
  3. Inject a real-world fault into a bounded part of the system.
  4. Compare steady state between the experiment group and a control group, and stop immediately if a guardrail is crossed.
  5. Learn: if the hypothesis held, confidence went up. If it failed, you found a weakness on your terms, and you fix it.

It is different from testing in one important way. A test checks a known property (“the breaker opens after 20 failed calls”). An experiment asks an open question about the whole system (“does checkout keep working when fraud scoring is slow?”) and frequently finds an interaction nobody wrote a test for, like the breaker counting the wrong thing.

The principles

The Principles of Chaos Engineering (principlesofchaos.org), written by the Netflix engineers who popularised the practice, list five:

  • Build a hypothesis around steady-state behaviour. Measure outputs users care about (throughput, success rate, latency percentiles), not internals like CPU.
  • Vary real-world events. Inject what actually happens: hosts dying, dependencies slowing, disks filling, zones going dark, clocks jumping, traffic spikes.
  • Run experiments in production. Staging does not have production’s traffic, data, configuration drift or scale. Start elsewhere, but the goal is production.
  • Automate experiments to run continuously. A resilience property verified once decays with every deploy.
  • Minimise blast radius. Start small, contain the impact, and be able to stop instantly.

How it works

The experiment loop

flowchart LR
A["Define steady state<br/>(checkout success, p99)"] --> B["Hypothesis<br/>(holds under fault X)"]
B --> C["Scope blast radius<br/>(1 pod, 5% traffic)"]
C --> D["Set stop conditions<br/>(alarm-based abort)"]
D --> E["Inject fault"]
E --> F{"Guardrail<br/>crossed?"}
F -->|"yes"| G["Abort and roll back"]
F -->|"no"| H["Compare experiment<br/>vs control"]
G --> I["Findings and fixes"]
H --> I
I --> A
style A fill:#E1F5EE,stroke:#0F6E56,color:#085041
style E fill:#FAEEDA,stroke:#854F0B,color:#633806
style G fill:#FCEBEB,stroke:#A32D2D,color:#791F1F
style I fill:#EEEDFE,stroke:#534AB7,color:#3C3489

The control group matters. If you inject latency into 5% of traffic and compare it to the other 95% over the same minutes, a coincidental traffic dip or an unrelated deploy affects both groups, so the difference you measure is the fault’s effect. Comparing against “last Tuesday” is far weaker.

Fault types

Fault What you inject What it tests
Latency added delay on a dependency or network path timeouts, slow-call detection in circuit breakers, bulkheads
Errors 5xx responses, connection resets, exceptions retries, fallbacks, error handling
Resource exhaustion CPU burn, memory pressure, full disk, file descriptor or connection pool exhaustion limits, load shedding, alerting
Dependency loss block a database, cache, DNS or third-party API soft vs hard dependency assumptions, stale-cache paths
Instance and process loss kill pods, terminate instances, restart processes redundancy, health checks, warm-up behaviour
Zone or cell loss blackhole one AZ or one cell static stability, failover capacity, cell isolation
Clock skew shift a host clock forward or back token expiry, lease logic, ordering (clocks)
Network partition packet loss, split between groups of hosts quorum behaviour, split brain, client retries

Latency is the most valuable fault to start with. Clean failures (a dead host, a refused connection) are what most systems are designed for. Slow, partial failures are what actually cause outages, as in the opening.

The experiment ladder

You earn the right to run in production by climbing:

flowchart LR
L1["1. Local and CI<br/>(Toxiproxy, fault flags)"] --> L2["2. Staging game day<br/>(team present)"]
L2 --> L3["3. Production, tiny<br/>(1 pod or synthetic traffic)"]
L3 --> L4["4. Production canary<br/>(1 to 5% real traffic)"]
L4 --> L5["5. Continuous, automated<br/>(scheduled, alarm-guarded)"]
style L1 fill:#F1EFE8,stroke:#888780,color:#444441
style L2 fill:#E1F5EE,stroke:#0F6E56,color:#085041
style L3 fill:#FAEEDA,stroke:#854F0B,color:#633806
style L4 fill:#FAEEDA,stroke:#854F0B,color:#633806
style L5 fill:#EEEDFE,stroke:#534AB7,color:#3C3489

Each rung must pass before the next. If the experiment fails in staging, you fix the weakness there; there is no reason to rediscover it on real customers. Rung 5 is where the real value compounds, because it catches regressions: the fallback that worked in March is broken by a refactor in June.

Guardrails and stop conditions

An experiment without a stop button is an outage you scheduled. Every experiment needs:

  • Automated stop conditions wired to the same SLO metrics you use for alerting: abort if checkout success drops below a threshold for 2 minutes, or if p99 exceeds a ceiling. AWS Fault Injection Service, for example, lets you attach CloudWatch alarms as stop conditions that halt the experiment.
  • A bounded scope: a percentage of traffic, a set of hosts, one AZ or cell, chosen by tags or labels, never “all”.
  • A time limit: the fault reverts on its own after N minutes even if the controller dies.
  • A manual abort anyone on the call can press.
  • Calendar sense: not during a launch, a peak sale, an ongoing incident, or a freeze. Pause automatically when error budget is low (SLI, SLO, SLA and error budgets).
  • Communication: on-call and support know what is running, so a real incident is not confused with an experiment, or the reverse.

Game days

A game day is a scheduled session where a team runs one or more experiments together, live, often a larger scenario: “us-east-1a goes dark”, “the primary database fails over”, “the payments provider returns 503 for 20 minutes”. Beyond the technical findings, a game day exercises people: does the alert fire, does it page the right person, does the runbook work, does the incident process kick in, can someone find the dashboard. Many game days find that the system was fine and the humans could not tell.

Measuring results

Treat findings like incident findings. Each experiment produces a short write-up: hypothesis, scope, what happened, experiment vs control numbers, and action items with owners. Track a few programme-level measures: how many critical dependencies have a verified fallback, how many experiments run automatically, how many findings are fixed, and whether incidents caused by “untested failure mode” go down over time. Good observability is a prerequisite; if you cannot see per-group success rate and latency in near real time, you cannot run the experiment safely.

Where it breaks

Chaos without observability. If you cannot measure steady state per group within a minute, you cannot detect harm or stop in time. Fix dashboards and SLO metrics first.

Random destruction mistaken for engineering. Killing random instances finds some problems, but most real outages come from slow and partial failures. An experiment without a hypothesis and a measurement teaches little.

Experiments that only ever run in staging. Staging lacks real traffic, data shapes and config drift. It is a rung, not the destination.

Blast radius that is not actually bounded. Injecting latency at a shared dependency (the database, a mesh-wide setting) affects everyone, not “5% of traffic”. Inject at the caller side, on scoped pods or requests.

Findings that never get fixed. A programme that produces reports but no fixes is theatre. Tie findings to the same action item tracking as postmortems.

Running during the wrong moment. An experiment during an incident, a peak event or with the error budget exhausted turns a learning exercise into an outage.

Fault injection tooling as a risk. The tool itself has privileges to kill pods and break networks. Restrict who can run what, where, and audit it.

Real-world systems

The practice is usually traced to Netflix, which built Chaos Monkey around 2010 while moving to AWS. Chaos Monkey terminates instances at random during business hours, so teams have to design for instance loss. Netflix open sourced it in 2012, and a later version integrated it with the Spinnaker deployment platform. The wider Simian Army (Latency Monkey, Chaos Gorilla for zone loss, Chaos Kong for region loss and others) is no longer maintained; Netflix moved to more targeted, request-level platforms such as Failure Injection Testing (FIT) and the Chaos Automation Platform (ChAP), which run experiments on a small slice of traffic against a control group.

timeline
title Chaos engineering milestones
2010 : Chaos Monkey at Netflix during the AWS migration
2012 : Chaos Monkey open sourced
2014 : Netflix Failure Injection Testing (FIT)
2016 : Chaos Monkey 2.0 on Spinnaker
2021 : AWS Fault Injection Service generally available
2022 : Chaos Mesh and LitmusChaos reach CNCF incubation

Tools in 2026:

  • AWS Fault Injection Service (FIS): managed experiments against EC2, ECS, EKS, RDS, networking and more, with CloudWatch alarm stop conditions and a scenario library that includes availability zone power interruption.
  • Azure Chaos Studio: the Azure managed equivalent.
  • Chaos Mesh (CNCF incubating): Kubernetes-native, experiments as custom resources such as PodChaos, NetworkChaos, StressChaos, IOChaos and TimeChaos for clock skew.
  • LitmusChaos (CNCF incubating): Kubernetes-native, with a hub of reusable experiments and a control centre for scheduling and results.
  • Gremlin: a commercial platform for fault injection across hosts, containers and Kubernetes, with scenario libraries and reliability scoring.
  • Toxiproxy (open source, from Shopify): a TCP proxy that adds latency, bandwidth limits, timeouts and resets between your code and a dependency. Ideal for local and CI tests, rung 1 of the ladder.
  • Service mesh fault injection: Istio and Envoy can inject delays and aborts into a percentage of requests by route, which is a cheap way to run request-level experiments (service discovery and mesh).

How to apply it

A practical starting programme:

  1. Inventory critical paths and list their dependencies, labelled hard or soft by design.
  2. Get steady-state metrics per path, splittable by experiment group.
  3. Start in CI with Toxiproxy or mesh fault injection: latency and errors on each soft dependency; assert the fallback runs.
  4. Run a staging game day per quarter with on-call present.
  5. Move to production at 1 pod, then 1 to 5% of traffic, with alarm stop conditions and time limits.
  6. Automate the experiments that passed, on a schedule, paused when the error budget is low.
  7. Feed postmortems into experiments. Every incident caused by a failure mode should produce an experiment that would have caught it.
Choose When
Toxiproxy or mesh fault injection testing a client’s handling of one dependency, in CI or per request
Chaos Mesh or LitmusChaos Kubernetes workloads, open source, experiments as code
AWS FIS or Azure Chaos Studio cloud-level faults (instances, AZs, managed databases) with native stop conditions
Gremlin commercial support, cross-environment coverage, managed scenarios

Interview questions

Q1: How would you introduce chaos engineering to a team that has never done it?

Start where it is cheap and safe. Pick one critical user journey, define its steady-state metric and make sure it is visible per group in near real time. List the dependencies the design calls soft. In CI or staging, inject latency and errors into each soft dependency with Toxiproxy or mesh fault injection and check the fallback actually runs. Run one staging game day with on-call present to test alerts and runbooks too. Then run the passing experiments in production on one pod or 1% of traffic with alarm-based stop conditions and a time limit, and automate the ones that keep passing. Fix findings with owners, and show the team a real bug found on a Tuesday instead of a Friday night; that sells the programme.

Q2: Why run experiments in production at all? Isn’t staging enough?

Staging differs from production in traffic volume and mix, data shapes and sizes, configuration, scale-dependent behaviour like connection pool contention, and the actual dependency versions in use, so many failure modes only show up in production. That does not mean starting there: you climb from CI to staging to production with a small blast radius, a control group, automated stop conditions and a computed worst-case error budget cost. Production experiments are justified because the failure will happen there eventually anyway, and an experiment at 5% traffic for 15 minutes with a 2 minute stop condition is far cheaper than discovering it during a real incident.

Q3: What stop conditions would you put on an experiment that kills one AZ’s worth of capacity for a service?

Tie them to customer-facing steady state, not infrastructure: abort if the service’s success rate drops below its SLO threshold for a couple of minutes, or p99 latency exceeds a ceiling, and also watch the dependencies most likely to fail under shifted load, such as database connection counts in the remaining zones. Add a hard time limit after which the fault reverts automatically even if the controller fails, a manual abort, and a pre-check that skips the run when the error budget is low or an incident is open. Before starting, confirm the remaining zones have the static capacity to absorb the load (for 3 AZs, each provisioned for 50% of peak), because if they do not, you already know the result.

✅ Key takeaways

  • Chaos engineering is experimentation: steady state, hypothesis, bounded fault injection, comparison against a control group, and fixes.
  • Start with latency and partial failures on dependencies believed to be soft; clean crashes are rarely what takes systems down.
  • Climb the ladder from CI (Toxiproxy, mesh faults) to staging game days to small production canaries to continuous automation.
  • Every experiment needs alarm-based stop conditions, a bounded scope, a time limit, a manual abort and a worst-case error budget estimate.
  • In 2026 the common tools are AWS FIS, Azure Chaos Studio, Chaos Mesh, LitmusChaos, Gremlin and Toxiproxy; Chaos Monkey started it and the Simian Army is retired.

🧠 Check your understanding

0 / 4
  1. 1Which is the best steady-state metric for a chaos experiment on a checkout service?

  2. 2Your experiment injects 300 ms of latency into the shared primary database to test one service. What is the main flaw?

  3. 3An experiment exposes 20 checkouts per minute. The stop condition fires after 2 minutes and revert takes 1 minute. The monthly error budget is 8,000 failed checkouts. What is the worst-case budget cost?

  4. 4What is the strongest reason to automate chaos experiments that already passed?

Where to go next

Finished this lesson?

Mark it complete to track your progress across the roadmap.