The user wants an "SRE incident playbook."
This needs to be a comprehensive guide for handling incidents.
Key components requested:
- Comms (Communication)
- Roles (Who does what)
- Timelines (When things happen)
- Artifacts (Documents, logs, etc.)
Target Audience: SREs, DevOps Engineers, Incident Commanders, Developers.
Tone: Professional, clear, actionable, structured.
Structure of the Playbook:
- Header/Overview: What is this document? When is it used?
- Severity Levels (SEV): Briefly define what constitutes an incident (SEV1 vs SEV2) to set context.
- Roles & Responsibilities: Define Incident Commander (IC), Communication Lead (Comms), Ops/Subject Matter Expert (SME).
- Lifecycle/Workflow (The "Timeline"):
- Phase 1: Detection & Triage
- Phase 2: Investigation & Mitigation
- Phase 3: Resolution & Recovery
- Phase 4: Post-Incident (Postmortem)
- Communication Plan: Templates, channels (Slack, PagerDuty, Email), stakeholders.
- Artifacts: What needs to be saved/recorded.
- Postmortem Process: Blameless culture.
Drafting Content - Section by Section:
- Introduction: Keep it brief. "This playbook defines the process for managing production incidents..."
- Roles:
- Incident Commander (IC): The boss of the incident. Not fixing code, managing the people.
- Operations Lead (Ops): The one typing commands.
- Communications Lead: The one talking to customers/bosses.
- SME: The expert on the specific service.
- The Timeline/Process (The meat):
- 0-5 mins: Triage. Is it real? How bad? Assign IC.
- 5-30 mins: Investigate. Establish a bridge (Zoom/Meet). First external comms if high SEV.
- 30-60 mins: Deep dive, potential rollback or fix. Regular updates.
- Resolution: Service restored.
- Comms:
- Need templates. Everyone hates writing status updates in the heat of the moment.
- Internal: "We are investigating..."
- External: "Users may experience..."
- Closing: "The incident has been resolved."
- Artifacts:
- Incident ticket (JIRA/etc).
- Chat logs (Slack).
- Timeline document.
- Postmortem doc.
Refining and Formatting:
- Use Markdown for readability (Tables, Bold, Lists).
- Use "Best Practices" callouts (e.g., "Declare early," "Blameless").
- Make it generic enough to apply to most tech stacks but specific enough to be useful.
Self-Correction during drafting:
- Initial thought: Should I include specific Kubernetes commands?
- Correction: No, that's too specific. This is a process playbook, not a technical runbook. Keep it procedural.
- Focus: Make sure to emphasize the role of the Incident Commander. That's often the missing piece in amateur teams.
Final Polish:
- Add a section on "Golden Rules" (e.g., De-escalation, Who pulls the trigger).
- Ensure the "Timeline" isn't just minutes, but phases.
Let's generate the response based on this structure.
This is a comprehensive SRE Incident Playbook designed to be adapted for any organization. It focuses on managing the incident lifecycle: from detection to resolution and post-mortem.
SRE Incident Response Playbook
Objective: Minimize Mean Time to Resolve (MTTR) while maintaining clear communication and psychological safety.
1. Incident Severity Levels (SEV)
Before responding, assess the severity. This determines the pace and the audience of the response.
| Level | Definition | Impact | Response Pace |
|---|
| SEV-1 | Critical | Total service outage or critical data loss. Revenue impact is immediate. | "War Room" mandatory. All hands on deck. Updates every 15-30 mins. |
| SEV-2 | Major | Significant functionality degraded (e.g., login failing for 50% of users). | War Room opened. Updates every 30-60 mins. |
| SEV-3 | Minor | Non-critical feature broken or impacting a small subset of users. | Asynchronous troubleshooting via Slack/Ticket. Updates every 2-4 hours. |
| SEV-4 | Low | Cosmetic issues, typos, or internal tool annoyances. | Fix during normal working hours. |
2. Roles & Responsibilities
An incident is not a democracy. Clear roles prevent "too many cooks in the kitchen."
A. Incident Commander (IC)
- The Boss: The single source of truth during the incident.
- Responsibilities:
- Declares the incident severity.
- Assigns roles (who is doing what).
- Keeps the timeline of events.
- Makes the final call on risky mitigations (e.g., failing over DBs).
- De-escalates the incident.
B. Operations Lead (OL) / Subject Matter Expert (SME)
- The Fixer: The person typing commands or writing code.
- Responsibilities:
- Executes the technical investigation.
- Implements the fix or rollback.
- Reports findings back to the IC.
C. Communications Lead (Comms)
- The Mouthpiece: Manages stakeholders and customers.
- Responsibilities:
- Drafts and sends external status page updates.
- Updates internal executives.
- Monitors social media/support tickets.
3. Timeline & Workflow
Phase 1: Detection & Triage (0–15 mins)
- Alert Triggered: PagerDuty/OpsGenie fires.
- Acknowledge: On-call acknowledges within 5 minutes.
- Assess: Is this a false positive? If real, what is the scope?
- Escalate: If it cannot be fixed in 15 mins, or if impact is SEV-1/2, call in an Incident Commander.
Phase 2: Investigation & Mitigation (15 mins – Resolution)
- Establish Command: IC designates a dedicated scribe to log events in the Incident Ticket/Doc.
- Hypothesis: The OL suggests a cause; the IC approves the test.
- Mitigation vs. Fix: The goal is to stop the bleeding, not necessarily to fix the root cause.
- Example: Rollback a deploy, restart a pod, or block traffic via a WAF.
- Status Updates:
- Internal: Update the main Slack channel (
#incident-current).
- External: Update Status Page immediately if customer-facing.
Phase 3: Resolution
- Verification: Confirm error rates have dropped and traffic is normalized.
- De-escalation: IC officially downgrades the severity to SEV-3 or closes it.
- Stand Down: Release the war room.
4. Communication Templates (Artifacts)
A. Internal "All Hands" Update (Slack/Email)
[SEV-1] Payment Gateway Failure
Status: Investigating
Impact: Users cannot check out.
IC: @jane_doe
War Room: Zoom Link [Here]
Next Update: 14:30 UTC
B. External Status Page Update
Investigating: We are currently experiencing issues with our payment processing system. Users may be unable to complete purchases. Our engineering team is actively investigating.
Posted: 14:05 UTC
C. Resolution Update
Resolved: The issue causing payment failures has been resolved. All services are operating normally. We are monitoring the situation to ensure stability.
Posted: 15:45 UTC
5. Incident Artifacts Checklist
These are the tangible items that must be created or updated during/after an incident.
| Artifact | When to Create | Where to Store |
|---|
| Incident Ticket | Immediately upon SEV-1/2 declaration | Jira / ServiceNow |
| Timeline Doc | Immediately (by the Scribe) | Google Doc / Notion / Confluence |
| Status Page Updates | Every 30-60 mins until resolved | StatusPage.io / Atlassian Statuspage |
| Log Snippets | During investigation | Paste into the Timeline Doc (do not rely on logs expiring) |
| Post-Mortem (RC/CA) | Within 24-48 hours of resolution | Internal Wiki / Engineering Blog |
6. Post-Mortem Process (Blameless)
Rule: The post-mortem must be blameless. We do not say "Bob broke the DB." We say "The deployment script lacked a safety check."
The 5 Whys Analysis
- Why did the site go down? (DB CPU hit 100%)
- Why did CPU spike? (A new query was introduced without an index).
- Why was it introduced without an index? (The migration script did not enforce index creation).
- Why didn't the script enforce it? (No linting rule exists for this).
- Why no linting rule? (We haven't prioritized DB linting tooling).
Action Items (The "Artifacts" of improvement)
- P0: Add linting rule to migration pipeline (Owner: Team A, Due: 1 week).
- P1: Add DB CPU alerting threshold to 80% (Owner: SRE, Due: 2 days).
- P2: Runbook update for DB restarts (Owner: On-call, Due: 1 month).
Deliverables
- Post-Mortem Document: Published internally (and externally if user-facing).
- Review Meeting: 30 mins to walk through the timeline and actions.