The user wants a comprehensive "prod incident rehearsal toolkit."
This toolkit needs to cover several specific components:
Scenario Library: Examples of things that can go wrong.
Runbook Templates: How to handle the scenarios.
Communication Drills: How to talk about it (internal/external).
Tooling Readiness Checks: Are the tools working?
Metrics Deck: How to measure success/failure of the drill.
Feedback Retros: How to improve for next time.
Target Audience: SREs, DevOps engineers, Engineering Managers, Incident Commanders.
Tone: Professional, actionable, structured, slightly authoritative but helpful (like a standard operating procedure).
Format: A structured guide with templates and lists.
Drafting - Section by Section:
1. Introduction/Overview:
Need to set the stage. Why are we doing this? (Chaos engineering/Game days). Define the scope.
2. Scenario Library:
Need a mix of severity and types (infra, app, security, 3rd party).
Idea: Structure this by "Complexity" (Simple, Complex, Black Swan).
Scenarios:
Database latency/failover.
Dependency outage (Stripe/AWS down).
Deployment rollback (bad code).
DDoS/Security breach.
Cloud provider region failure.
3. Runbook Templates:
Need a standard format so anyone can write one.
Structure: Title, Severity, Impact, Symptoms, Diagnosis Steps, Remediation Steps (Immediate vs. Long-term), Communication plan.
Template: Create a Markdown-style template.
4. Communication Drills:
This is often the weak point. It's not just fixing the bug; it's telling the stakeholders.
Internal: Slack updates, War room protocols.
External: Status page updates, Customer support scripts.
The Drill: Simulate the "waiting for info" gap. Practice the "every 30 mins update" rule even if no news.
5. Tooling Readiness Checks:
You can't fight a fire if the hose is broken.
Gamification: "Break-glass" test (can a new hire get access in 5 mins?).
6. Metrics Deck (The "Scorecard"):
How did we do?
Time to Detect (TTD).
Time to Acknowledge (TTA).
Time to Mitigate/Resolve (TTM/TTR).
Customer Impact (duration/users affected).
Drift: Did we follow the runbook?
7. Feedback Retros (The "Post-Mortem" of the Drill):
Blameless culture is key.
Format: What went well? What didn't? Action Items.
Output: Tickets created.
Refinement & Polish:
Use clear headers.
Use emojis for readability.
Add a "Facilitator Guide" intro to explain how to use the toolkit.
Ensure the distinction between a real incident and a rehearsal is clear (Safety nets).
Self-Correction during drafting:
Initial thought: Just list scenarios.
Correction: Scenarios need "Injection instructions" (how the facilitator simulates the problem) and "Expected Response" (what success looks like).
Initial thought: Just say "Check tools."
Correction: Make it a specific "Pre-Flight Checklist."
Final Structure:
Toolkit Overview (The "Game Day" Manifesto)
Phase 1: The Scenario Library (Categorized by type)
Phase 2: Runbook & Playbook Templates (The "Cookbook")
Phase 3: Communication Drills (The "Mouthpiece")
Phase 4: Tooling Readiness Checks (The "Pre-Flight")
Phase 5: The Metrics Deck (The "Scoreboard")
Phase 6: Feedback & Retro (The "Blameless Review")
Let's generate the content based on this structure. I will ensure the formatting uses code blocks for copy-pasteable templates.
This is a comprehensive Production Incident Rehearsal Toolkit (often called "Game Day" or "Fire drill" resources). This toolkit is designed to move your team from reactive firefighting to proactive incident management.
1. Scenario Library
These scenarios range from infrastructure failures to logic bugs. Each scenario should have an "Injection Script" (how to break it) and a "Reversal Script" (how to fix it if the team fails).
Category A: Infrastructure & Platform
The Zombie Process: A background worker process consumes 100% CPU but processes no jobs.
Objective: Test monitoring alerts and process management tools.
The Cascading Retry: A downstream API fails, causing your retry logic to hammer the database, locking tables.
Objective: Test circuit breakers and backoff strategies.
The Region Failure: Simulate a cloud provider Availability Zone (AZ) outage by blocking all traffic from a specific subnet.
Objective: Test load balancer failover and multi-AZ redundancy.
Category B: Data & State
The Silent Data Corruption: A bad migration script updates user emails to null for 5% of users.
Objective: Test backup restoration speeds and "Point-in-Time-Recovery" (PITR).
The Cache Stampede: Flush the Redis cache during peak load simulation.
Objective: Test database load handling and cache warming strategies.
Category C: Security & Access
The Leaked Credentials: Accidentally commit a valid API key to a public repo (simulated).
Objective: Test secret scanning tools and key rotation workflows.
The DDoS simulation: Use a tool to generate synthetic traffic that hits rate limits.
Objective: Test WAF rules and auto-scaling groups.
2. Runbook Templates
Runbooks should be living documents. Use this Markdown template for standardization.
markdown
# Runbook: [Service Name] - [Specific Failure Mode]
## Metadata
- **Owner:** Team Name
- **Severity:** SEV-1 / SEV-2 / SEV-3
- **Last Updated:** YYYY-MM-DD
## 1. Symptoms & Alerts
- **Alert Name:** `HighLatencyServiceX`
- **User-Facing Impact:** Users cannot log in / Pages load slowly.
- **Dashboards:** [Link to Grafana/Datadog Dashboard]
## 2. Diagnosis (Triage)
- [ ] Check recent deployments: `[Link to CI/CD]`
- [ ] Check database connections: `SHOW PROCESSLIST;`
- [ ] Check error rates in logs: `[Link to Log Aggregator]`
## 3. Mitigation Steps (Stop the Bleeding)
*Do these first to restore service, then investigate root cause.*
1. **Rollback:** `kubectl rollout undo deployment/service-x`
2. **Scale Up:** `kubectl scale deployment service-x --replicas=10`
3. **Feature Flag Off:** Disable the problematic feature via LaunchDarkly/Unleash.
## 4. Resolution Steps (Fixing the Root Cause)
1. Identify the bad commit.
2. Patch the logic.
3. Deploy fix via standard pipeline.
## 5. Communication Templates
- **Internal:** "We are investigating elevated error rates in Service X."
- **External:** "We are currently experiencing issues with [Feature]. We apologize for the inconvenience."
3. Communication Drills
Communication failures cause more reputational damage than technical failures. Drill these specifically.
Drill A: The "War Room" Protocol
Trigger: SEV-2 or higher declared.
Drill: Time how long it takes for the Incident Commander (IC) to open a bridge call (Zoom/Slack Huddle) and post the "Incident Declaration" message in the public Slack channel.
Success Criteria: Bridge opened and declared within 5 minutes of alert firing.
Drill B: The "Customer Zero" Simulation
Scenario: Customer Support receives 50 tickets about "failed checkouts" before engineering realizes it.
Drill: Simulate a support agent Slack message: "Hey team, seeing a spike in 'Payment Failed' errors. Is something up?"
Objective: Measure how long until an engineer acknowledges and triages.
Drill C: The Executive Update
Scenario: A SEV-1 has been ongoing for 45 minutes.
Drill: The IC must draft a status update email intended for the CTO/VP.
Requirements: Must include Current Status, Business Impact, ETA for fix, and Next Steps.
4. Tooling Readiness Checks
Automated checks to ensure your weapons are loaded before the fight.
The "Break-Glass" Checklist
Run this script or manual check 15 minutes before the rehearsal starts.
Access Control:
Can all participants SSH into the production bastion?
Is the "Break-Glass" admin password valid and accessible?
Observability:
Is the logging pipeline ingesting data? (Check lag).
Are the alerting channels (PagerDuty/OpsGenie) not in "Maintenance Mode"?
Deployment:
Is the CI/CD pipeline green?
Is there a "Rollback" button clearly visible in the UI?
Communication:
Is the Incident Slack channel archived? (Unarchive it).
Does the Zoom link for the War Room work?
5. Metrics Deck (The Scorecard)
After the drill, fill out this "Metrics Deck" to quantify performance.
Key Performance Indicators (KPIs)
Metric
Definition
Target
Actual (Drill)
TTD (Time to Detect)
Time between failure injection and alert firing.
< 2 mins
TTA (Time to Acknowledge)
Time between alert firing and engineer joining the bridge.
< 5 mins
TTM (Time to Mitigate)
Time between Acknowledge and service restoration.
< 30 mins
Runbook Usage
Did the engineer open the runbook? (Yes/No)
Yes
False Positive Rate
Did the drill trigger unrelated alerts?
0
Qualitative Assessment
Tooling Friction: Did the dashboard load slowly? Were the logs noisy?
Process Friction: Was it clear who was in charge?
Blamelessness: Did the team focus on the system failure or the person who caused it?
6. Feedback Retros (The Blameless Review)
Conclude every rehearsal with a 30-minute retro using the "Start, Stop, Continue" format.