PRACTITIONERCHAPTER 10

Chaos and resilience testing

Chaos engineering is experimentation, not vandalism: a measurable steady state, a hypothesis you try to disprove, a blast radius you chose and an abort condition you wrote first

40 MINSRE, PLATFORM AND DEVOPSUPDATED 2026-11-21
PREDICT

Your platform team has installed a fault-injection tool and wants to run its first experiment against a tier-1 service. What should exist before the first fault is injected?

Chaos engineering has a reputation it does not deserve. People picture an engineer killing servers at random to see what happens. The discipline is closer to the opposite. The Netflix engineers who named it describe it as experimenting on a distributed system to build confidence that it can withstand turbulent conditions in production. The word that matters is experiment: you say what you expect, you choose how to look, you cause one specific disturbance, and you compare.

At practitioner level you own the resilience evidence for a set of services. That means a short list of hypotheses about how they behave when something fails, a calendar of experiments that test them, and a record of what each experiment found and who fixed it. The artefact is a game-day plan with a hypothesis and an abort condition. This chapter covers how to build one that a service owner will agree to and that teaches you something.

The model: an experiment, not a stunt

A chaos experiment has the same shape as any experiment, and the Principles of Chaos Engineering set out five habits that carry it.

Principle What you do What goes wrong without it
Build a hypothesis around steady-state behaviour Pick a measurable output that indicates normal behaviour, such as error rate, latency percentiles or orders completed, and predict it will not change You inject a fault and argue afterwards about whether anything happened
Vary real-world events Inject faults that happen: a process dies, a dependency slows, a zone goes You test exotic failures nobody has seen and miss the ordinary ones
Run experiments in production Prefer the environment whose traffic and configuration are the real ones Staging passes and production fails for reasons staging cannot show
Automate experiments to run continuously Turn proven experiments into recurring checks A one-off game day proves the system was resilient on that day
Minimise the blast radius Limit who and what the experiment can touch The experiment becomes an incident

The principles page defines steady state as some measurable output of a system that indicates normal behaviour. The word “output” matters. CPU load and queue depth are inputs and internal signals, and a system can survive a fault with both changing wildly. Choose what a customer or a business process would notice: searches that return results, orders that reach dispatch, payouts that complete. If your service has SLIs, as described in SLOs in practice, they are the natural steady state, and the abort condition can reuse their thresholds.

The hypothesis has a specific form: “when this fault happens, the steady state holds.” Write it so it can be false. “The system is resilient” cannot fail. “If one worker is killed mid-job, no order is processed twice and the queue drains within ten minutes” can. A good experiment is one where you are genuinely unsure, which usually means the owner has a view and you hold a doubt.

Two further pieces complete the model. A control is something that is not being disturbed, so you can tell the fault’s effect from a bad morning: a second slice of traffic, the same hour last week, or a set of known-good records outside the experiment. And blast radius is the set of users, data, money and systems the fault could touch. The anatomy of a blast radius and of an abort condition, and the rule that the stop must be rehearsed, is covered in testing in production; read it before you write your first plan. Chaos experiments are production tests with a deliberately injected fault, and the same discipline applies.

Why this finds things that tests do not

Tests encode expectations. Someone thought of a failure, wrote an assertion and watched it pass. An experiment goes after expectations nobody wrote down, which is where hidden dependencies live: the Chubby case, a timeout that nobody set, a fallback that was never exercised, a runbook step that relies on a tool that is itself down. The failure models lesson is the reason these are hard to reason about on paper: from the caller’s side, a dead node and a slow one look identical, so the only way to learn what your system does is to make one of them happen.

What to inject

Start from the safeguards your services are supposed to have. Each one is a claim, and each claim has a fault that tests it.

Fault Example The safeguard it tests Mechanism lesson
A process or instance dies Kill a worker halfway through a job Restarts, and whether the job is safe to repeat Idempotency
A dependency is slow Add latency to calls to one downstream service Timeouts and retry backoff Timeouts, retries and jitter
A dependency returns errors Fail a share of calls with 503 Circuit breakers and fallbacks Circuit breakers
A short outage ends Block a dependency for a minute, then release it Whether the recovery causes a second outage Retry storms
A resource runs out Fill a disk, exhaust a connection pool Isolation and shedding Bulkheads, load shedding
Two groups cannot talk Drop traffic between two sets of nodes Failure detection and what each side does alone Failure models
Capacity disappears Remove a zone’s worth of instances Spare capacity, and whether survivors overload Cascading failures

This chapter links to those lessons because they teach the mechanisms. Your job is to decide which claim to test, and to know what the claim looks like in your own system.

Choosing what to test first

You cannot test everything, so rank. Four sources give you candidates, and the best experiments sit where two of them overlap.

Incident history. Read your last year of postmortems, as incident management describes them. Every action marked “add a fallback” or “handle this dependency timing out” is an untested fix. An experiment that re-creates the original fault is the cheapest regression test for a lesson you have already paid for.

Single owners. A service with one owner is a service where knowledge sits in one head. An experiment there tests the code and also the runbook, the alerts and whether anyone else can respond.

Readiness gaps. A production readiness review records what a team claims about failure handling. Where the answer is “we believe so”, you have a hypothesis to test.

Dependencies that never fail. The Chubby pattern: the reliable thing that everyone has quietly started to rely on. If a dependency has not failed in two years, your services have probably stopped handling its failure.

At Ojaline, a marketplace with about 150 services, 24 of them tier-1, the shortlist writes itself. Five of the tier-1 services have a single owner: the seller-wallet settlement job, the seller payout batch, the nightly capture sweep, dispatch routing and the search index sync. The first game days belong there, because a failure on one of them is already an incident waiting for a person who may be asleep, and because the owner and the SRE learn the most from each other.

The shape of a game day

A game day is a scheduled experiment, run by people, on a calendar. It tests the system and the people around it at once, which is why it is the right first step before any automation. The incidents and postmortems chapter covers game days where responders do not know the fault; here the aim is wider, and the plan is the main work.

Before. The plan is written and read by the service owner, who has a veto. It names the steady state, the hypothesis, the fault, the blast radius, the abort conditions and the person who holds the stop. Preconditions are checked in the hour before: telemetry shows the steady state is readable, no deploy or incident is in flight, and the service has error budget to spend. A service under a budget-driven freeze does not get an experiment.

Roles. A facilitator runs the clock and calls the abort. An injector causes the fault and, separately, undoes it. Observers watch the steady state and record times. A scribe keeps the timeline. Responders are the on-call engineers who would handle the failure in real life. Where the response is part of the test, they are told a window and not the fault. Where the system is the test, they are told everything, and that is usually the right start.

During. Inject the smallest version of the fault first. Compare the steady state with the control at fixed intervals. If an abort condition fires, stop at once and write down the time. The facilitator is the only person who may extend the window.

After. Hold a review within a day, while memory is fresh, in the blameless frame of a postmortem. Record what you expected, what happened, how you found out, and how long the stop took. Then sort the result into one of three outcomes.

Outcome What it means What you do next
The hypothesis held The safeguard works at this scale Widen the blast radius, or schedule it to repeat
The hypothesis broke A hidden dependency or missing safeguard Open an action with an owner and a date, fix, re-run the same experiment
You could not tell The steady state was not observable Add the missing signal first, then run it again

“The hypothesis held” is a real result, and one to report as such. A programme that only celebrates breakage teaches teams to pick experiments that fail.

From game days to continuous checks

A game day proves a system was resilient on one afternoon. Services change weekly, so the claim decays. The fourth principle, automating experiments to run continuously, is the answer, and it has an order.

First, run the experiment by hand until it has held at least twice with no surprises in the review. Second, script it, with the stop built in and an alert if the stop does not work. Third, run it on a schedule in a pre-production environment, which catches regressions at deploy time. Last, and only for experiments whose blast radius is tiny and whose abort condition is automatic, run it in production on a timer.

Tools exist at every step: open-source fault injectors for Kubernetes, cloud providers’ fault-injection services, commercial platforms and proxies that add latency to a connection. Choose one for its safety features, not its menu of faults. It must support a stop condition tied to your own monitoring, scoping to a named target, an audit log of who ran what, and a single action that ends everything.

Two limits. Automation without owners produces alerts nobody understands: every scheduled experiment needs a named service owner who receives the failure. And automation does not replace the game day, because the human parts, such as finding the runbook, deciding who declares, and noticing a signal the dashboard does not show, only surface when people are involved.

Where practitioners disagree

Production or staging. The Principles of Chaos Engineering favour production because systems behave differently under real traffic and real configuration. Many teams, sensibly, rehearse in a lower environment first. The honest position has two parts. Staging is where you prove the experiment script and the stop work, because a broken stop in production is an incident. Production is where you learn whether the system is resilient, because staging’s data, scale and neighbours differ. If the only environment you can touch is staging, say so in the report, and treat a pass as weaker evidence than a pass in production.

Announced or surprise. Telling responders the fault in advance tests the system and protects the people. Not telling them tests the response as well, and costs trust if done carelessly. Start announced. Move to a window without the details once your incident programme is stable and your responders have seen a few announced days.

Test or experiment. Some teams treat a chaos run as a resilience test with a pass mark. That works for a regression you have already understood, such as “killing a worker does not lose a job”. For anything you do not understand, forcing a pass or fail hides the finding. Keep both: tests for what you know, experiments for what you suspect.

Who runs it. The service team runs its own experiments, with SRE owning the tooling and the stop, which matches the split in testing in production. A central team injecting faults into services whose owners did not ask for it creates resentment, and the findings sit in a backlog nobody owns.

How much budget to spend. Chubby’s planned outages spent budget deliberately. Most services should not: an experiment is paid for in error budget, so a service close to its target needs smaller experiments, or none.

Findings and follow-through

An experiment that finds something and fixes nothing has cost time and taught nobody. Treat findings as the incident programme treats postmortem actions. Each gets an owner in the owning team’s backlog, a deadline the team’s manager agreed, and a re-run date for the same experiment. The overdue report covers experiment findings as well as incident actions. When you re-run, use the same plan; that is the proof the fix worked.

Report to leadership in the language of the steady state: “we killed the search sync mid-run; listings in the interrupted batch were missing for up to one retry interval; fixed in the next sprint; re-run passed.” Never report a count of experiments run, which rewards activity. Report hypotheses tested, hypotheses broken, and findings closed. For disaster recovery, where the same ladder from tabletop to a full exercise applies at a larger scale, see disaster recovery and continuity.

Day to day

Every week. You review the experiment backlog with the service owners you cover: which hypotheses are next, which findings are open, and which services have changed enough to need a re-run. You check that any scheduled experiment ran and that its stop condition was tested.

Before each experiment. You review the plan against the rubric, run the precondition checks, confirm the owner and the on-call engineer know, and tell support and the incident commander rota that a window is open and who holds the stop.

After each experiment. Within a day you hold the review, sort the outcome, file actions in the owning team’s backlog, and update the register of what you have tested and when.

Every month. You send leadership the one-page report: hypotheses tested, broken and closed, and the services with no experiment in the last two quarters. You check the register against the incident review for incidents whose lesson was never tested.

Every quarter. You run a game day with responders from more than one team, rotating the scenario so it is never the same twice running, and retire automated experiments that no longer match the architecture. As a rule of thumb, a practitioner covering a handful of services spends a day or two a month on planning and review, and the rest of the time on fixing what the experiments found.

BY ORG SIZE
STARTUPunder 30 people

There is no SRE and the engineers who built the system run it. A game day is one afternoon: two people, a written hypothesis, the staging environment, and a call to the one person who knows the payment path. You do not need a tool. Kill a process, block a port, add latency with a proxy. Do it before the first large customer asks about resilience. The risk is skipping the written stop condition because the team is small enough to shout; write it anyway, because the person who wants the experiment to succeed is usually the person running it.

SCALE-UP30 to 300

This is where the practice is built. A small platform team covers dozens of services, incidents repeat, and several owners have never seen their own failure modes. Pick three to five services from the incident history, run announced game days with the owners, and publish the register. Agree a standard plan template so the tenth takes an hour, and agree the stop mechanism once, centrally. Resist buying a platform until a manual experiment has held twice. Expect to find that your telemetry cannot see the steady state, and plan time to fix that first.

ENTERPRISE300 and up

A resilience or chaos function may exist, with tooling, a catalogue of approved faults and a change-advisory process. The difficulty is permission and consistency. Some units forbid production faults by policy, others run them with no controls. Your work is a single standard that risk, audit and the owning teams all accept once: what may be injected, blast-radius limits by tier, who holds the stop, and what evidence is kept. Regulated businesses may need the evidence for resilience reviews, so automate the record rather than leaving it in slides.

ARTEFACT Write a game-day plan ~75 MIN
YOU PRODUCEGame-day plan with a hypothesis and an abort condition

Template

# Game-day plan: <service>, <date and window>
Author · Service owner (has a veto) · Facilitator · Injector · Observers · Responders

## Why this experiment
<Incident, readiness gap or dependency that prompted it. The claim being tested.>

## Steady state
| Signal | Where read | Baseline | Control |
|---|---|---|---|

## Hypothesis
<When X happens, the steady state holds. What we expect. What we doubt.>

## Fault
<What is injected, how, in what order of size, and how it is undone.>

## Blast radius
<Users, data, money, systems, duration. What is excluded. The control that stays untouched.>

## Preconditions (checked within the hour)
- [ ] Steady state readable on <dashboard>
- [ ] Error budget remaining: <value>; no freeze
- [ ] No deploy or incident in flight
- [ ] Owner, on-call, support and incident commander told

## Abort conditions
| Signal | Threshold | For how long | Action | Who | Rehearsed stop time |
|---|---|---|---|---|---|

## Stop mechanism
<The one action that brings the blast radius to zero, and who may take it.>

## How this could mislead us
<One way the result could be wrong, such as a contaminated control or a steady state we cannot read, and the signal that would show it.>

## After each outcome
- Held: <widen to ..., or schedule>
- Broke: <action owner, date, re-run date>
- Could not tell: <signal to add first>

## Record
<Times, observations, what we expected versus what happened, findings with owners>
WORKED EXAMPLE

Ojaline is an online marketplace with its own delivery fleet and a seller wallet: 1,400 staff, about 150 services, 300 engineers, in Lagos and nine delivery cities. Mansur, an SRE on the platform side, wrote this plan with Talatu, the sole owner of the search index sync, one of the five tier-1 services with one owner. The sync updates the semantic search index each night, re-upserting changed listings as a delete followed by an insert.

Why. The delete and the insert are two steps. If the process dies between them, a listing exists in the catalogue and not in search. Nobody has ever killed the sync mid-run on purpose, and Talatu believes the next run repairs it. Mansur doubts that the repair is quick, or that anyone would notice meanwhile.

Steady state. A probe set of 200 synthetic listings, created for this experiment in a test seller account and hidden from public browse, queried once a minute: share of probes returning their listing. Baseline 100% over the previous seven days. Control: a second set of 200 synthetic listings that the experiment does not touch. Also p99 search latency against the same hour a week earlier.

Hypothesis. If the sync process is killed between the delete and the insert for a batch of 50 listings, those listings return to search within one scheduled retry, and the control set stays at baseline. Mansur expects this to be false for at least one batch.

Fault. Kill the sync worker after the delete step, first on 1 batch of 50, then on 4 batches. Undo: restart the worker and trigger a re-sync of the probe set.

Blast radius. Synthetic listings only. No real seller or buyer data is read or written. Window: 45 minutes, Tuesday at 10:00, outside the nightly sync.

Preconditions. Probe dashboard readable, no search deploy in the last 24 hours, error budget not spent, Talatu and the on-call engineer present.

Abort. Control probe success more than 1 percentage point below baseline for 3 consecutive minutes; or p99 search latency above 1.5 times the same hour last week for 5 minutes; or any real listing found missing. Action: stop the injector, restart the worker, trigger a re-sync. Talatu holds the stop. Stop time rehearsed in staging: 2 minutes.

How this could mislead. The probe set shares an index with the control set, so a slow index rebuild could dent both; if the control moves, Mansur discards the run rather than reading it as a finding.

After each outcome. Held: repeat on a one-city slice of the real catalogue. Broke: Talatu opens an action for an atomic upsert or a missing-listing alert, with a re-run date. Could not tell: add a missing-listing metric first.

Now you

You are an SRE at Ojaline, a marketplace with its own delivery fleet in nine cities, about 150 services and 300 engineers. Dispatch routing, the service that assigns orders to riders, is one of the five tier-1 services with a single owner, and that owner has never been away from it for more than a few days. Your manager wants a game day on dispatch routing this quarter. Complications: the service has no environment with realistic fleet data, so staging tells you little; every city’s operations team uses its output all day; an order already assigned to a rider cannot be taken back by flipping a switch; and the owner is wary of any experiment on live dispatch. Write the plan for one experiment. Choose the steady state, the hypothesis, the fault, the blast radius and the abort conditions, say what you would do about the missing environment, and say how you would win the owner’s agreement.

Self-check

DECIDE

You are Mansur, an SRE at Ojaline. Card payments are authorised at checkout and captured when an order is dispatched; a nightly capture sweep captures anything left over. The sweep has one owner, and nobody has ever killed it mid-run. You want to test the hypothesis that, after a kill and a restart, every order is captured exactly once. Staging uses a fake acquirer that accepts everything and never times out. Finance operations has said a double charge means a refund and a customer complaint, handled on the support refund screen. You have a rehearsed stop and a plan to read the capture ledger. Where does the experiment run?

READING
  1. DOC
    Principles of Chaos Engineering

    The five habits in one page: steady-state hypothesis, real-world events, production, automation and a minimal blast radius. Short enough to read before every plan you write.

  2. PAPER
    Chaos Engineering Ali Basiri, Niosha Behnam, Ruud de Rooij, Lorin Hochstein, Luke Kosewski, Justin Reynolds and Casey Rosenthal, 2016

    The Netflix engineers who named the discipline set out what it is and why they do it. Read it to see the experiment framing in the authors' own words. Read: IEEE Software 33(3), May to June 2016, pages 35 to 41; the whole article.

  3. BOOK
    Chaos Engineering: System Resiliency in Practice Casey Rosenthal and Nora Jones, 2020

    The book-length treatment, with accounts from several companies. Use it for programme design and for how teams outside Netflix adapted the practice. Read: O'Reilly, 2020; start with the opening chapters, then the case studies from other companies.

  4. PAPER
    Weathering the Unexpected Kripa Krishnan, 2012

    How Google's DiRT exercises started small and grew. The advice to begin modestly and let a drill expand is the right pace for a first programme. Read: ACM Queue 10(9), September 2012; the whole article.

  5. BOOK
    Site Reliability Engineering, chapter 4: Service Level Objectives 2016

    The origin of this chapter's opening story, and the argument for spending error budget on purpose to expose hidden dependencies. Read: Site Reliability Engineering (O'Reilly, 2016), chapter 4; the box on the Global Chubby planned outage.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Progressive delivery: canaries, flags and automatic rollback →