Chaos Engineering Playbook: 14 Stages to Build an Order out of Chaos
This article uses a fourteen-episode series as a metaphor to organize a practical chaos engineering playbook. It walks through mapping assets and dependencies, defining steady-state hypotheses and error budgets, setting the blast radius and guardrails, progressively expanding from single-node to regional and full-domain failure drills, running red-team/blue-team exercises, and converting post-drill retrospectives into long-term resilience mechanisms. It also introduces a four-level maturity model and a reusable drill scenario library, helping teams move from reactive firefighting toward continuous, guardrail-driven resilience.
1. Opening: Treat Stability Governance Like a Seasonal Series
When teams talk about stability, the first thing that usually comes to mind is “no outages.” A more precise statement is this: a system’s stability does not depend on whether failures occur, but on whether losses are controllable when they do occur and whether recovery is predictable.
This is like the chaos in a seasonal drama. Chaos by itself does not move the story forward; what drives the story is the response, the cost, and the growth that follow once chaos strikes. System governance works the same way. A runbook written into an incident manual but never actually tested is like a script that has never been performed — you only discover that the lines don’t hold up when something really goes wrong.
This article borrows from a fourteen-episode series themed around “chaos.” Its narrative runs along two main threads:
- Escalating external threats: Adversarial forces close in step by step, and the protagonist’s job is to protect the peace of an entire town.
- Recurring internal ideological tension: The protagonist is torn between loyalty and a fresh start, and the direction the organization takes remains unsettled.
Mapped onto system governance, this pair of tensions lines up neatly with two parallel threads:
- The external thread is “confrontation”: In real environments, failures always exist — from single-point hardware anomalies to regional dependency outages — and they require continuous drills to test the system.
- The internal thread is “transformation”: Moving from relying on individual firefighting to relying on engineering mechanisms to guarantee stability — a transformation that is often harder than the technical change itself.
From this we can build a metaphor map for “the order of chaos”:
| Narrative element in the series | Counterpart in system governance |
|---|---|
| The town that needs protecting | The business domain carrying users and revenue |
| The club and its members | The system’s core services and their upstream/downstream dependencies |
| The steadily advancing external forces | Traffic spikes, dependency failures, resource contention, security attacks |
| The tug-of-war between brotherhood and “redemption” | The ongoing tradeoff between fast iteration and stable compliance |
| 45 minutes per episode, 14 episodes per season | A governance cadence of short cycles, limited scope, and independently verifiable deliverables |
The fourteen episodes of the full season are exactly the source of this article’s framework: breaking the adoption of chaos engineering into 14 stages, where each stage is a “closed-loop unit” that can be designed and verified on its own. Teams don’t need to build a big, all-encompassing platform in one go. They can move forward one episode at a time, like following a series, accumulating a set of reusable lessons and conclusions with each episode they complete.
2. Episodes 1–3: Map the Territory and Chart Assets and Dependencies
2.1 Draw the Map Before Discussing Offense and Defense
The opening of a series usually sets up the relationships between characters and the distribution of forces. System governance likewise needs a “territory map.” Without an inventory of assets and dependencies, there’s no way to judge the blast radius of a drill, and no way to prove where a system’s weak points are.
The territory map should cover three perspectives:
- Business perspective: Sort out the key user journeys (sign-up, login, ordering, payment, query) and clarify which services and data each journey involves.
- Service perspective: Register a service inventory, including owner, deployment location, replica count, resource quota, and key configuration.
- Resource perspective: Record the topology of infrastructure such as compute, storage, network, cache, and message queues.
2.2 Establish a Tiering Standard
Not every system is worth the same drill cost. Tiering should follow the principle of “invest according to business value”:
| Tier | Typical characteristics | Availability target (example) | Drill requirement (example) |
|---|---|---|---|
| L0 core | Directly carries the transaction or login main path | 99.99% | At least one regional drill per quarter |
| L1 important | Supports the core path or a key business function | 99.95% | At least one dependency-failure drill per month |
| L2 general | Internal tooling or auxiliary functions | 99.9% | At least one basic fault injection per half-year |
Tiering results need to be confirmed jointly by the business, development, and operations teams, and reviewed periodically as the business changes.
2.3 Distinguish Strong and Weak Dependencies and Chart the Dependency Topology
In practice, what actually brings a system down is often not the core service itself but an overlooked weak dependency:
- Strong dependencies: If missing, the main flow fails directly — e.g., identity authentication, order writes.
- Weak dependencies: If missing, they only affect experience or secondary functions — e.g., product recommendations, marketing pop-ups, historical data queries.
Many incidents trace back to weak dependencies being treated as strong ones: a recommendation-service timeout took down the order API; a failure to read pop-up configuration blanked out an entire page. Use distributed tracing to reconstruct the service call relationships, then combine with code review to confirm synchronous calls, timeout settings, and exception-handling logic, and label each dependency with a strong/weak attribute. Also identify “single-point” nodes — for example, a gateway or config center that all traffic must pass through and that has no redundancy. Then export this topology as a structured file to serve as the basis for selecting drill targets:
# Asset and dependency inventory (illustrative)service: order-gatewaylevel: L0owner: order-teaminstances: 12dependencies:- name: user-authtype: strong # strong dependencytimeout_ms: 800fallback: fail-fast- name: recommendationtype: weak # weak dependencytimeout_ms: 300fallback: return-empty
Dependency labeling directly affects drill priority: verify timeouts and degradation for strong dependencies first, while for weak dependencies verify “whether the main flow still works when they’re turned off.”
3. Episodes 4–6: Define the Steady State and Set the Referee Standard for Each Drill
3.1 The Steady-State Hypothesis: The Only Yardstick for a Drill’s Success
The central question running through the whole “order of chaos” is how to rebuild order amid disorder. Chaos engineering’s answer is the steady-state hypothesis: before a drill starts, first describe what “normal” looks like using business metrics, then judge whether the system still behaves normally after a fault is injected.
Steady-state metrics should meet three conditions:
- Observable: There’s a clear data source.
- Decidable: There’s a clear threshold, not “feels fine.”
- User-facing: They reflect real experience, not just machine metrics.
Metrics like CPU utilization and memory usage are “means-type” metrics. What really deserves attention are “outcome-type” metrics like request success rate, latency percentiles, and business success rate.
# Steady-state hypothesis definition (illustrative)steady_state:business:order_create_success_rate: ">= 99.9%" # order creation success rateservice:p99_latency_ms: "<= 500" # P99 latency not exceeding 500mserror_budget:window: "30d" # measurement windowallowed_burn_per_drill: "<= 10%" # one drill burns no more than 10% of the error budget
It’s worth emphasizing: thresholds must be set based on the business baseline, not copied straight from a template.
3.2 Use the Error Budget to Connect “Stable” and “Fast”
An error budget is the allowable amount of unavailability derived from the availability target. Take 99.9% monthly availability as an example: over 30 days, about 43 minutes of downtime is allowed. The protagonist’s struggle between loyalty and a fresh start is equally real in an engineering context: iteration speed and stability are always pulling against each other. The error budget turns this tug-of-war into a rule you can discuss and quantify:
- When the budget is ample, encourage fast releases and reasonable risk-taking.
- When the budget burns too fast, freeze non-essential changes and prioritize stability work.
The drill itself also consumes budget, so you can set a cap on the share of budget a single drill may consume, preventing the drill from becoming the source of an incident.
4. Episodes 7–9: Set the Boundaries and Hold the Security and Compliance Line
4.1 Blast Radius: Verify in a Small Scope First, Then Expand Gradually
The tension in the series comes from the protagonists being in danger yet always keeping something in reserve. Drills should follow the same principle: keep the impact controllable and be able to stop at any time.
- Drill environment: Prefer staging environments or production canary clusters. If the environment’s configuration differs too much from production, you can close the gap with traffic recording and replay.
- Drill target: For the same service, start with one replica, then one node, then one availability zone, expanding step by step.
- Drill window: Prefer off-peak business hours, avoiding key periods like major promotions or settlement.
- Data involved: For experiments involving data corruption or deletion, prefer shadow data, or complete a snapshot backup before the experiment.
4.2 Guardrail Mechanisms and Rollback Plans
The effectiveness of a drill depends on the “guardrails” — the mechanisms that let a drill abort safely:
- Automatic circuit breaking: When steady-state metrics cross the abort threshold, stop fault injection immediately and restore the system to its original state.
- Access control: Assign drill accounts by least privilege, with two-person review for critical operations.
- Change correlation: Proactively freeze related changes before a drill, so that human changes and fault injection don’t stack on top of each other and make root cause hard to isolate.
- Observability assurance: Confirm that metrics, logs, and tracing data are complete and usable, avoiding a “blind men and the elephant” situation.
4.3 Hold the Security and Compliance Red Line
Drills aim to perturb the system, but security requirements can’t be lowered for that reason:
- Minimum necessary: Use drill accounts that meet least-privilege requirements.
- Audit trail: Retain drill plans, execution records, and rollback operations in full.
- Data compliance: Prohibit destructive experiments on production data, to prevent crossing the red lines of data-protection regulations.
- Customer impact: For systems facing end users, prepare customer notification and compensation plans in advance.
- Third-party boundary: Never inject faults into unauthorized external systems; strictly limit the drill scope to your own systems and explicitly authorized environments.
In addition, high-risk experiments involving key paths such as data and funds must pass change review before they can be carried out.
5. Episodes 10–11: Single-Point and Regional Attack and Defense, Expanding the Drill Scope Level by Level
5.1 Basic Resource Faults: From Simple to Hard
Basic fault injection is relatively simple and low-risk, making it suitable as a starting point for a team’s early-stage drills. Typical scenarios include:
- Creating CPU saturation, memory exhaustion, or a full disk on a node;
- Executing a process kill or restart on a node;
- Injecting network latency, packet loss, or a partition between nodes.
These scenarios validate the most basic resilience capabilities: whether replicas are sensibly distributed, whether health checks are effective, and whether faulty instances can be automatically isolated.
5.2 Dependency and Middleware Faults: Closest to Real Incidents
More worth prioritizing than resource faults are dependency and middleware faults:
- Drill failover of a database primary node or a primary-replica switch;
- Create consumer backlog and duplicate delivery in a message queue;
- Simulate a cache node failing, and observe whether the origin-fetch traffic overwhelms the backend;
- Simulate object-storage request throttling or temporary unavailability;
- Simulate a config center or registry being briefly unreachable.
For each scenario, answer three questions:
- Are timeouts effective? Can the caller’s timeout settings prevent threads or connections from being occupied for a long time?
- Is degradation reasonable? Are the switches effective? Would the data returned by the degradation cause business-logic errors?
- Is recovery automatic? After the dependency recovers, can the system return to normal on its own rather than needing a manual restart?
In the series, what decides success is often not the head-on clash but logistics, supply, and communication chains. The corresponding elements in a system are exactly those basic dependencies: databases, message queues, caches, and config centers.
5.3 Regional Faults: Design Drill Targets by Topology
Regional faults come closest to the real form of a major incident and can be designed based on the territory map:
- Availability-zone fault: Isolate one availability zone to validate traffic scheduling, capacity redundancy, and cross-zone data sync.
- Gateway node fault: Inject faults into some nodes of the ingress gateway to validate load balancing and health checks.
- Capacity load test: Simulate a sudden traffic surge to validate elastic scaling and rate limiting/degradation.
Regional drills must include a “recovery verification”: confirm that the system not only stays available during the fault but also automatically recovers after the fault is cleared and works off the backlog.
6. Episodes 12–13: Full-Domain Confrontation and Red-Team/Blue-Team Exercises
6.1 Stacking Multiple Faults: Validating Real, Complex Scenarios
Real incidents are rarely caused by a single factor. The common pattern is “a small fault triggers a big one”: a cache node fails, origin-fetch traffic surges, which in turn overwhelms the database, and finally takes down several upstream services. Such cascading reactions are hard to cover with a preset script, so you need to introduce random fault factors in a simulated environment and observe the system’s overall behavior.
If the team has red-team/blue-team capability, the “blue team” handles monitoring, localization, and remediation, while the “red team” injects faults without prior notice, testing the real level of the monitoring, localization, and incident-response processes.
6.2 The Resilience of the Response Process Also Needs Drilling
However tight the script, there are always surprises on the ground, so the incident-response system must include the ability to “handle the unexpected.” The following capabilities can’t stay only on paper:
- Root-cause localization: Can monitoring alerts, log search, and tracing localize the problem within an acceptable time?
- Change rollback: Can you roll back to the last stable version in minutes?
- Cross-team collaboration: Do incident command, information release, and customer communication have clear role assignments?
- Incident runbooks: Have the runbooks been tested in real conditions?
7. Episode 14: Settle Conclusions and Turn Drill Results into Long-Term Mechanisms
7.1 Retrospectives: Turn One Drill into a Set of Improvement Items
The value of a drill lies not in “the result being normal” but in producing actionable improvement items no matter the outcome. A retrospective can follow this process:
- Reconstruct the timeline: the time taken by fault injection, alert triggering, localization, and recovery;
- Compare against the steady-state metrics to judge whether the drill met its goals;
- Distinguish three types of conclusions: real defects, expected degradation behavior, and guardrail false positives;
- Assign an owner, remediation action, and deadline to each problem;
- Bring new monitoring, degradation switches, and auto-recovery logic into routine configuration management.
7.2 Measure Governance Effectiveness with Quantified Metrics
Core metrics worth tracking over the long term include:
- Drill coverage: number of key services already drilled / total number of key services planned to cover;
- Issue closure rate: number of issues remediated on time / total number of issues found in drills;
- Mean time to detect (MTTD): average time from a fault occurring to its being detected by monitoring;
- Mean time to recovery (MTTR): average time from a fault occurring to business recovery;
- Steady-state attainment rate: number of drills that satisfied the steady-state hypothesis / total number of drills.
These metrics should go on a fixed dashboard and be reviewed monthly for trends.
8. Season 2 Preview: Plan the Next Phase with a Maturity Model
Viewing governance evolution as an ever-updating series, each stage has clear characteristics and a next-step goal. Referencing common chaos engineering practices in the industry, it can be divided into four maturity levels:
| Level | Characteristics | Typical actions | Next-step goal |
|---|---|---|---|
| L1 reactive firefighting | Relying on manual detection and handling | Improve monitoring and alerting | Establish a drill mechanism |
| L2 organized drills | Planned, guardrailed, regular drills | Single-point and dependency fault injection | Expand coverage |
| L3 routine operations | Drills integrated into daily change and release processes | Automated drills, red-team/blue-team exercises | Build platform capabilities |
| L4 continuous evolution | Resilience as a default architecture-design requirement | New services ship with drill capability | Replicate and promote across teams |
8.1 Example Drill Scenario Library
Maintain a scenario library within the team to consolidate use-case templates:
| Scenario ID | Scenario name | Layer | Validation focus |
|---|---|---|---|
| S-01 | Single-node CPU saturation | Resource | Health checks and auto-isolation |
| S-02 | Database primary-replica switch | Dependency | Connection re-establishment and business continuity |
| S-03 | Batch cache node failure | Dependency | Origin-fetch protection and rate-limiting strategy |
| S-04 | Message queue backlog | Dependency | Consumer scaling and duplicate-consumption idempotency |
| S-05 | Availability-zone isolation | Regional | Traffic scheduling and capacity redundancy |
| S-06 | Stacked multiple faults | Full-domain | Cascading-failure containment and incident response |
8.2 Drill Design and Execution Process
Whether you use a self-built drill system or a cloud-hosted drill capability, you can follow a unified six-step closed loop:
- Define the steady state: Specify business and service metrics and their thresholds;
- Design the experiment: Determine the fault type, target scope, duration, and abort conditions;
- Safety review: Confirm the blast radius, rollback plan, and drill window;
- Execute injection: Record the start time, injection parameters, and real-time metrics;
- Real-time observation: Stop the injection immediately when an abort condition is met;
- Retrospective and archiving: Output conclusions and improvement items, and update the scenario library.
# Drill flow pseudocode (general logic only; does not represent any specific system interface)def run_drill(experiment):baseline = collect_metrics(experiment.targets)assert is_healthy(baseline), "baseline is unhealthy, abort drill"with guardrails(max_duration=experiment.duration,abort_conditions=experiment.abort_conditions,auto_restore=True # always restore the environment no matter what):inject_fault(experiment)result = evaluate(actual=collect_metrics(experiment.targets),expected=experiment.steady_state)report(result)return result# Note: metrics must be sampled continuously during the drill, with abort conditions checked between samples# The execution order in the pseudocode only illustrates the logic; a real implementation must guarantee real-time decisions
Both cloud-hosted approaches and self-built platforms typically provide visualized drill orchestration and one-click rollback. For example, on Baidu AI Cloud, you can combine the elastic scaling of the container platform, the observability of monitoring and alerting, and the search and analysis of the log service to complete the full loop from steady-state collection to automatic abort.
8.3 Integrate into the Delivery Process to Achieve “Resilient by Default at Launch”
The key to raising maturity is turning drills from an “extra task” into a “default action”:
- Complete a basic fault drill before a new service goes live;
- Add targeted experiments after a major architecture change;
- Use drill results as one of the references for release review;
- Bring degradation switches, timeout configuration, and idempotency design into the code-review checklist.
9. Conclusion: Building Order Amid Chaos
Comparing stability governance to a fourteen-episode “order of chaos” is not about chasing dramatic twists, but about borrowing its progression logic: each episode has a clear goal, conflicts escalate level by level, and it ultimately lands on order and growth.
Back to engineering practice, the article’s core conclusions come down to four points:
- Map the territory: First establish asset tiering and dependency topology, clarifying what to protect and what to depend on;
- Define the steady state: Use observable, decidable business metrics as the “referee” for drills;
- Hold the boundaries: Constrain every drill with blast radius, guardrail mechanisms, and security/compliance red lines;
- Settle the mechanisms: Through retrospectives, metric tracking, and process integration, turn a one-off action into a long-term capability.
Chaos won’t disappear, but it can be managed. When a team can face failures head-on with a steady cadence and guardrails, the system can still maintain order amid chaos — and that is exactly the ultimate goal chaos engineering pursues.
