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.

ToolWhat it doesWhat it validates
Chaos MonkeyKills random production instancesAny service survives losing an arbitrary instance
Chaos GorillaKills an entire AWS Availability ZoneCross-AZ failover works — not just in the runbook
Chaos KongKills an entire AWS regionWhole-region failover (see Regional failover) works — the biggest thing Netflix breaks on purpose
Latency MonkeyInjects delay into RESTful client-server callsCallers degrade cleanly when a dependency is slow, not dead — the commoner, harder case, since slowness ties up threads instead of failing fast
Conformity MonkeyShuts down instances outside best-practice patternsInstances don't drift from patterns known to work
Doctor MonkeyHealth-checks instances, removes unhealthy onesSick instances don't drag the pool down
Janitor MonkeyCleans up unused resourcesCost and clutter don't pile up across the fleet
Security MonkeyFinds security-group and config violationsSecurity settings don't quietly loosen
Three blast radii, drawn nested inside one another rather than as a sequence. The outermost box is an AWS region, one of several, and Chaos Kong deletes all of it — proving a whole-region failover works, the biggest thing Netflix breaks on purpose. Drawn inside that region is availability zone a, one of three in the region, which Chaos Gorilla deletes all of — proving cross-AZ failover actually works and not just in the runbook. Drawn inside that zone is one instance, one of thousands, which Chaos Monkey kills on its own, deliberately during business hours with the owning engineers awake and watching, proving the service survives losing an arbitrary instance. Beside that instance, still inside zone a, sit all the other instances of the zone: Gorilla takes those too, Monkey does not. Below zone a, still inside the region, sit zones b and c with their own instances: Kong takes those too, Gorilla does not. So each tool removes the entire box it labels and the radii subsume one another — a Kong run has already taken out every AZ and every instance drawn inside it. There is no arrow between the three: they are separate tools, run separately, each asking one question at its own size — if this disappears right now, does the rest keep working the way we assume?
Three blast radii, nested — not a sequence. Monkey, Gorilla and Kong are three separate tools aimed at three nested scopes — not steps in a sequence, but the same question asked at three sizes.

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:

  1. 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).
  2. 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.
  3. 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.
  4. 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.
  5. 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

GroupWhat it getsWhy it exists
ControlA small slice of real traffic, untouchedShows what "normal" looked like during this exact window
ExperimentAn equal slice, with the fault injectedShows 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.

How ChAP reads the result of a chaos experiment. A bar across the top is live production traffic; ChAP assigns every request to a slice. Ninety-eight percent of it stays on the normal path and is never part of the run — no arrow leaves that part of the bar. Two identical one-percent slivers are cut out of the middle of the same bar, and each widens into one box of a matched pair drawn mirror-image to each other: on the left, CONTROL, one percent of live traffic; on the right, EXPERIMENT, one percent of live traffic. Both get real production traffic at this exact moment and in the same share; the only difference between the two boxes is one line — control keeps the normal code path with nothing injected, while the experiment carries a FIT tag saying dependency X is slow or failed. Both slices report the same metric, SPS, into one comparator: ChAP compares the two continuously, where gap equals experiment SPS minus control SPS. That one comparison is the whole output, and it can say two things. If the gap stays within the guardrail the hypothesis held: this failure mode is survived and the run ends on its own. If the gap exceeds the guardrail ChAP aborts in seconds, pulling the injection itself — the weakness was found at one percent of traffic instead of a hundred. Because both slices run at the same moment, everything they share — the time of day, a CDN hiccup, a bad deploy ten minutes ago — hits both equally and cancels out; whatever difference is left in the gap is the injected fault, and a gap is simple enough for software to act on by itself, with no human judging whether a four percent dip is alarming or normal for a Tuesday.
ChAP — the control slice is what makes the result readable. Two matched 1% slices run at once, so what they share cancels out. The only question left — did the experiment pull away from the control? — is simple enough for software to act on.

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.