The user wants a "Chaos Game Day Runbook."
The structure they requested is specific: hypothesis, blast radius, success criteria, and follow-ups.
My goal is to create a comprehensive, usable template or example of a Chaos Game Day Runbook that fits this structure.
1. Understanding the Context:
- What is a Chaos Game Day? It's a planned exercise where a team intentionally injects failure into a system to test its resilience, observability, and response capabilities.
- Who is this for? SREs, DevOps engineers, software engineers.
- Tone: Professional, structured, precise, yet encouraging of learning.
2. Structure Breakdown & Brainstorming:
- Header/Metadata: Need to identify what is being tested, who is doing it, and when. (Not explicitly asked for, but essential for a real runbook).
- Hypothesis: What do we think will happen? Or, what are we trying to prove? "If X fails, Y will happen."
- Blast Radius: How big is the explosion? Which users are affected? Which services? How do we limit it?
- Success Criteria: What defines a "win"? Is it that the system didn't crash? Is it that the on-call was paged within 5 minutes? Is it that the dashboard showed the error?
- Follow-ups: What do we do after? Fix bugs, improve docs, automate recovery.
3. Drafting the Content:
- Option A: A blank template.
- Pros: Universally applicable.
- Cons: Hard to visualize how to use it.
- Option B: A filled-out example.
- Pros: Shows how to think.
- Cons: Might not match the user's specific stack.
- Option C: A hybrid (Template + Concrete Example). (Selected Approach)
- I will provide a structured template explaining what goes in each section, followed by a concrete example (e.g., "Killing a primary database in a failover test").
4. Fleshing out the Sections (Iterative Refinement):
5. Adding "Missing" Essential Elements:
The user asked for four specific sections, but a real runbook needs a "Pre-flight Check" and "Execution Steps." I should add these as supporting context so the document is actually useful, even though I'll highlight the four requested sections primarily.
6. Refinement of the Output:
I will structure the response into:
- General Principles (Briefly: Safety first).
- The Template (The core request).
- A Concrete Example (To make it stick).
Self-Correction during drafting: I initially thought about just listing the definitions. But a runbook is a document. I should format it to look like a document.
7. Final Polish:
Ensure clear headings. Use bolding for emphasis. Make sure the language implies "Game Day" (collaborative, learning) rather than just "Incident" (stressful, reactive).
(Self-Correction on "Blast Radius"): Make sure to explicitly mention the "Abort Button" or "Stop Condition" within the Blast Radius section. That's a key part of safety.
8. Final Output Generation: (This matches the provided good response).
- Template structure.
- Detailed definitions.
- Real-world scenario example (Database Failover).
Below is a comprehensive Chaos Game Day Runbook template. It is structured to ensure safety, clarity, and actionable learning.
Following the template, I have included a concrete example (a Database Failover scenario) to show how to fill it out.
Part 1: The Template
Runbook Owner: [Name/Team]
Date: [YYYY-MM-DD]
System/Service Target: [e.g., Payment API, User Database, CDN]
1. Hypothesis
What specifically are we testing? What is the expected behavior of the system under stress or failure?
Template: "If we inject [FAILURE MODE] into [COMPONENT], we expect [SYSTEM BEHAVIOR] to happen within [TIMEFRAME]."
Example: "If we terminate 50% of the API pods, the load balancer will route traffic to healthy nodes and end-users will experience no latency spike greater than 200ms."
2. Blast Radius
Define the scope of impact. This is your safety perimeter.
- Infrastructure Scope: [e.g., Only AWS us-east-1, Only specific K8s namespace
exp-chaos]
- Customer Impact:
- Internal: [e.g., Only QA team]
- External: [e.g., 5% of free-tier users, No enterprise customers]
- Data Risk: [e.g., Risk of data corruption, read-only impact, or write loss]
- Dependency Risk: [e.g., Will this spam a 3rd party API like Stripe/Twilio? Do we need to notify them?]
- Rollback Plan: [e.g., "Kill the chaos experiment process," "Restore from backup snapshot," "Revert config change"]
3. Success Criteria
How do we know if the system passed or failed? These must be measurable.
- Latency: p95 latency remains below [X]ms.
- Errors: Error rate (HTTP 5xx) does not exceed [Y]%.
- Availability: Uptime remains above [Z]%.
- Observability: The on-call engineer received a page within [N] minutes of impact.
- Recovery: System returned to baseline performance within [M] minutes of the attack ending.
4. Execution Steps (The Plan)
The minute-by-minute script.
- T-Minus (Pre-Check): Verify dashboards are loaded, stakeholder slack channel is notified.
- T-0 (Start): Initiate failure injection.
- T+5m (Observe): Check metrics. Any unexpected spikes?
- T+10m (Mitigate): If necessary, attempt manual remediation (or verify auto-remediation).
- T-End (Stop): Halt the chaos injection.
5. Follow-ups
What happens after the dust settles?
- Immediate: [e.g., "Create ticket to fix the memory leak discovered."]
- Process: [e.g., "Update runbook for on-call regarding this specific alert."]
- Architecture: [e.g., "Investigate why the circuit breaker didn't trigger."]
- Next Game Day: [e.g., "Schedule Part 2 of this test for Production."]
Part 2: Concrete Example (Filled Out)
Scenario: Testing manual failover of a primary Postgres database during peak traffic.
Runbook Owner: Database Team
Date: 2023-10-27
System/Service Target: Primary Transaction DB (RDS)
1. Hypothesis
"If we force a failover of the Primary RDS instance to a standby replica, application connection pools (PgBouncer) will detect the topology change and reconnect automatically. We expect a total downtime (blackout period) of less than 60 seconds."
2. Blast Radius
- Infrastructure Scope: Production Database Cluster (Multi-AZ).
- Customer Impact:
- All users attempting to make a purchase during the 60-second window will receive a generic "System Busy" error.
- Users reading data (browsing catalog) are unaffected due to read-replica routing.
- Data Risk: Minimal. RDS handles data consistency during failover. In-flight transactions will roll back.
- Rollback Plan: Wait 5 minutes for the promotion to complete. If manual intervention is required, trigger the "Reboot DB Instance" command in AWS console.
3. Success Criteria
- Pass:
- The application error log shows connection resets, but the app does not crash.
- A successful purchase is logged within 90 seconds of the failover command.
- The on-call DBA received an automated "Multi-AZ Failover" notification.
- Fail:
- Application containers crash and require a restart.
- The failover takes longer than 120 seconds.
- Data integrity checks fail after recovery.
4. Follow-ups (To be filled out Post-Mortem)
- Item 1: Adjust
connection_timeout variable in application config (we discovered it was set too high).
- Item 2: Update the "System Busy" error message to be more user-friendly.
- Item 3: Add a specific dashboard widget for "Active DB Connections" so we can see the drop-off clearer next time.