Chaos Engineering: The Simian Army and Earning Trust
Why / The Problem
The Strangler fig migration part split the system into hundreds of services; the Hystrix part wrapped their calls in timeouts, breakers and fallbacks. Does any of that actually work? Tests can't say: unit and integration tests run in clean environments, not with a real machine or availability zone dying at an unchosen moment, under real traffic and years of config drift that staging never reproduces. At Netflix's scale failure is a certainty — instances die constantly, AZs and regions have bad days — so the real choice is:
Discover your failure modes on your own schedule, with engineers awake and watching — or at 3am during a real incident, at the size the incident chose.
How It Works
Chaos Monkey (2011, open-sourced 2012) kills random production instances during working hours — deliberately. At 3am it would still break things but miss the point, which is learning: the owning engineers must be at their desks, watching whether the system degrades as assumed, able to step in when it doesn't.
| Tool | What it does | What it validates |
|---|---|---|
| Chaos Monkey | Kills random production instances | Any service survives losing an arbitrary instance |
| Chaos Gorilla | Kills an entire AWS Availability Zone | Cross-AZ failover works — not just in the runbook |
| Chaos Kong | Kills an entire AWS region | Whole-region failover (see Regional failover) works — the biggest thing Netflix breaks on purpose |
| Latency Monkey | Injects delay into RESTful client-server calls | Callers degrade cleanly when a dependency is slow, not dead — the commoner, harder case, since slowness ties up threads instead of failing fast |
| Conformity Monkey | Shuts down instances outside best-practice patterns | Instances don't drift from patterns known to work |
| Doctor Monkey | Health-checks instances, removes unhealthy ones | Sick instances don't drag the pool down |
| Janitor Monkey | Cleans up unused resources | Cost and clutter don't pile up across the fleet |
| Security Monkey | Finds security-group and config violations | Security settings don't quietly loosen |
From random killing to a real method
Random killing finds problems but explains little: you can't tell whether your fault caused a blip, or what should have happened. Around 2015 Netflix codified the method as Principles of Chaos Engineering — define healthy, predict, break something for a tiny slice of real users, finger on the stop button:
- Pick one number that means "customers are fine." Netflix uses stream starts per second (SPS). It must be about customers (CPU fails — it can look normal while nobody can watch) and react within seconds (an hourly metric can't stop a harmful experiment).
- Predict before you break anything — against a control slice running alongside the experiment slice. Unpacked below; it's the step that makes the rest work.
- Run it in production, not staging. Staging's different traffic mix, smaller fleet and missing years of leftovers are exactly what cause the failures you're hunting — so staging tests a system your customers aren't using.
- Keep it small, with a stop button. The smallest slice that gives a clear answer — 1% is usually plenty — undoable in seconds. The skill is choosing how much to risk, and being able to take it back.
- Being wrong is the good outcome. An SPS drop in the faulted slice is a real weakness found at a time you picked, at 1%, with the right people watching — instead of at 3am, at 100%, with customers noticing first.
Unpacking step 2: why a control group is the whole ballgame
"Form a hypothesis" sounds like paperwork. It packs three ideas, and the third is what makes chaos engineering work at all.
1. You commit to a prediction before you break anything
"If I make the recommendations service time out, SPS will stay flat, because Hystrix will trip and we'll serve the fallback row."
That can be proven wrong — which is the point. Without a prediction written down first, every outcome looks like success, because there's no expectation left to violate.
2. Two groups, running at the same moment
| Group | What it gets | Why it exists |
|---|---|---|
| Control | A small slice of real traffic, untouched | Shows what "normal" looked like during this exact window |
| Experiment | An equal slice, with the fault injected | Shows what the fault did |
The hypothesis is that SPS stays normal in both — the setup in the ChAP diagram below.
3. Why the control group is the part that actually matters
Run only the experiment and see SPS drop 4%: was it your fault, a CDN hiccup, a deploy ten minutes ago, or just 3pm on a Tuesday? You can't tell — production is always moving. A control group changes the question:
Not "did SPS drop?" — but "did the experiment slice diverge from the control slice?"
Everything both slices share — time of day, the CDN hiccup, the bad deploy — cancels out; what's left is your fault. It's a drug trial's placebo arm: there to show what "normal" looked like, so you can subtract it.
ChAP — the Chaos Automation Platform, from roughly 2017 — automates this. Instead of an occasional scheduled Chaos Kong, it continuously runs small experiments on a tiny slice of live traffic, each with a written prediction, a matched control slice, and a guardrail that aborts automatically. Because it compares two live slices, "should I stop?" is mechanical — is the gap wider than the guardrail? — so no human judges whether a dip is normal for a Tuesday, and the run pulls its own plug in seconds: a lesson, not an outage.
The Invariants
- Guarantees: Failures actually exercised — a lost instance, AZ or region, injected latency, a dead dependency — are known survivable against real production behaviour, found on Netflix's schedule rather than first met mid-incident.
- Does not guarantee: That every failure mode has been found. A 700-service system changes shape with every deploy, and each change can create a new way to fail — chaos engineering never finishes.