GuideOpen

Incident Management

Comprehensive guide to incident response, root cause analysis, post-mortems, and building resilient incident management processes.

Incident Management

Comprehensive guide to incident response, root cause analysis, post-mortems, and building resilient incident management processes.

Table of Contents

  • [Incident Lifecycle](#incident-lifecycle)
  • [Severity Classification](#severity-classification)
  • [Incident Response Roles](#incident-response-roles)
  • [Communication Protocols](#communication-protocols)
  • [Root Cause Analysis](#root-cause-analysis)
  • [Post-Incident Reviews](#post-incident-reviews)
  • [On-Call Management](#on-call-management)
  • [Incident Management Tools](#incident-management-tools)
  • [Runbook Development](#runbook-development)
  • [Metrics and Improvement](#metrics-and-improvement)

Incident Lifecycle

Incident States

DETECTED → ACKNOWLEDGED → INVESTIGATING → IDENTIFIED → RESOLVING → RESOLVED → CLOSED

Detection:
  - Automated alert fired
  - User report received
  - Proactive monitoring identified anomaly

Acknowledgment:
  - On-call engineer confirms receipt
  - Target: < 5 minutes for P1

Investigation:
  - Gather symptoms and evidence
  - Check recent changes
  - Review logs and metrics
  - Identify affected components

Identification:
  - Root cause hypothesis formed
  - Scope of impact determined
  - Fix or workaround identified

Resolution:
  - Implement fix or workaround
  - Validate service restoration
  - Monitor for recurrence

Closure:
  - Confirm no further impact
  - Document resolution
  - Schedule post-incident review

Incident Response Workflow

Phase 1: Detection & Triage (0-5 minutes)
  Actions:
    - Alert fires or user reports issue
    - On-call acknowledges within 5 minutes
    - Initial severity assessment
    - Create incident ticket
    - Page additional responders if needed

  Key Questions:
    - What is the user-facing impact?
    - How many users/customers affected?
    - Is data at risk?
    - Is this getting worse?

Phase 2: Investigation (5-30 minutes)
  Actions:
    - Join incident war room (Slack/Zoom)
    - Assign Incident Commander role
    - Review recent changes (deployments, configs)
    - Check monitoring dashboards
    - Query logs for errors
    - Trace affected requests
    - Form initial hypothesis

  Key Questions:
    - What changed recently?
    - What do logs show?
    - Are dependencies healthy?
    - Can we reproduce the issue?

Phase 3: Mitigation (30-60 minutes)
  Actions:
    - Implement fix or workaround
    - Roll back recent changes if needed
    - Scale resources if capacity issue
    - Enable feature flags to disable problematic code
    - Communicate status to stakeholders

  Decision Framework:
    - Fast workaround vs proper fix
    - Rollback vs roll forward
    - Partial restoration vs full fix

Phase 4: Recovery (60+ minutes)
  Actions:
    - Validate service metrics returned to normal
    - Confirm user-facing functionality restored
    - Monitor for recurrence (30-60 min)
    - Gradual rollback of workarounds if applied
    - Clear alerts

  Success Criteria:
    - Error rate < threshold
    - Latency within SLO
    - No new related alerts
    - User reports stopped

Phase 5: Post-Incident (24-72 hours)
  Actions:
    - Schedule post-incident review within 48 hours
    - Complete incident report
    - Create follow-up tickets for fixes
    - Update runbooks
    - Share learnings with team

Severity Classification

Priority Definitions

Priority 1 (Critical):
  Description: Complete service outage or critical functionality unavailable
  User Impact: All or most users cannot use the service
  Business Impact: Revenue loss > $10K/hour, major SLA breach
  Data Risk: Active data loss or corruption

  Response:
    - Acknowledge: < 5 minutes
    - Initial Response: Immediate (24/7)
    - Communication: Every 30 minutes
    - Escalation: Immediate to leadership
    - All hands on deck: Yes

  Examples:
    - Website completely down (503 errors)
    - Database unavailable
    - Payment processing offline
    - Security breach in progress
    - Data corruption affecting production

Priority 2 (High):
  Description: Major functionality degraded or affecting many users
  User Impact: Significant portion of users impacted
  Business Impact: Revenue loss $1K-$10K/hour, SLA at risk
  Data Risk: Potential data issues if not resolved

  Response:
    - Acknowledge: < 15 minutes
    - Initial Response: < 30 minutes (during business hours)
    - Communication: Every 1-2 hours
    - Escalation: After 1 hour to team lead
    - All hands: If not resolved in 2 hours

  Examples:
    - Critical API endpoint timing out frequently
    - Significant performance degradation (5x normal latency)
    - Key feature unavailable (e.g., checkout flow broken)
    - Elevated error rates (> 5%)

Priority 3 (Medium):
  Description: Partial degradation or minor functionality impaired
  User Impact: Some users affected, workaround available
  Business Impact: Minimal revenue impact
  Data Risk: No data at risk

  Response:
    - Acknowledge: < 4 hours (business hours)
    - Initial Response: Same business day
    - Communication: Daily updates
    - Escalation: If not resolved in 1 business day
    - All hands: No

  Examples:
    - Non-critical feature broken
    - Performance degradation in secondary service
    - Intermittent errors affecting < 1% of requests
    - UI display issues

Priority 4 (Low):
  Description: Minor issues, cosmetic problems, or enhancement requests
  User Impact: Minimal or no user impact
  Business Impact: No business impact
  Data Risk: None

  Response:
    - Acknowledge: < 1 business day
    - Initial Response: Next sprint/cycle
    - Communication: Via regular channels
    - Escalation: No escalation needed
    - All hands: No

  Examples:
    - Typo in UI
    - Logging issues
    - Minor visual inconsistencies
    - Feature enhancement requests

Severity Decision Tree

Start: Issue Detected
         |
         v
[Is service completely down?] → YES → P1
         |
         NO
         v
[Are multiple users unable to complete critical tasks?] → YES → P2
         |
         NO
         v
[Is there a workaround available?] → NO → P2
         |
         YES
         v
[Does it affect revenue or security?] → YES → P2
         |
         NO
         v
[Are only a few users affected?] → YES → P3
         |
         NO
         v
[Is it a cosmetic or minor issue?] → YES → P4

Incident Response Roles

Role Definitions

Incident Commander (IC):
  Responsibilities:
    - Overall incident leadership
    - Coordinate all responders
    - Make key decisions (rollback, escalate, etc.)
    - Own communication to stakeholders
    - Ensure post-incident review happens

  Skills Required:
    - Calm under pressure
    - Strong communication
    - Technical breadth (not necessarily depth)
    - Decision-making ability

  Actions:
    - Declare severity and activate response
    - Delegate tasks to responders
    - Maintain incident timeline
    - Communicate status updates
    - Call for additional resources
    - Declare incident resolved

  Rotation: Senior engineers, on-call leads

Technical Lead (TL):
  Responsibilities:
    - Lead technical investigation
    - Propose fixes or workarounds
    - Coordinate debugging efforts
    - Make technical decisions

  Skills Required:
    - Deep technical knowledge of systems
    - Debugging expertise
    - System architecture understanding

  Actions:
    - Analyze logs, metrics, traces
    - Reproduce issues
    - Test hypotheses
    - Implement fixes
    - Validate resolution

  Rotation: Subject matter experts, senior engineers

Communications Lead (Comms):
  Responsibilities:
    - Internal stakeholder updates
    - External customer communication
    - Status page updates
    - Executive briefings

  Skills Required:
    - Clear written communication
    - Ability to translate technical to business impact
    - Stakeholder management

  Actions:
    - Post updates to status page
    - Send email updates to customers
    - Update internal stakeholders
    - Prepare executive summary
    - Manage support ticket responses

  Rotation: Product managers, customer success, tech leads

Scribe:
  Responsibilities:
    - Document all actions taken
    - Maintain incident timeline
    - Record decisions and rationale
    - Note important findings

  Skills Required:
    - Attention to detail
    - Fast typing
    - Ability to summarize technical discussions

  Actions:
    - Log every action in incident ticket
    - Timestamp all events
    - Record chat/call highlights
    - Capture relevant screenshots
    - Document who did what when

  Rotation: Junior engineers, on-call secondary

Subject Matter Expert (SME):
  Responsibilities:
    - Provide specialized knowledge
    - Answer specific technical questions
    - Assist with debugging

  Skills Required:
    - Deep expertise in specific system/component

  Actions:
    - Answer questions about their system
    - Review code/configs
    - Provide context on recent changes
    - Suggest diagnostic steps

  Rotation: Engineers owning specific services

Role Assignment

P1 Incident:
  Roles Required:
    - Incident Commander (required)
    - Technical Lead (required)
    - Scribe (required)
    - Communications Lead (required)
    - SMEs (2-3, as needed)

  Activation:
    - IC self-designates or is assigned by on-call manager
    - IC assigns other roles explicitly
    - Clear handoff if roles change

P2 Incident:
  Roles Required:
    - Incident Commander (required)
    - Technical Lead (same person as IC okay)
    - Scribe (optional but recommended)
    - SMEs (1-2, as needed)

  Activation:
    - On-call assumes IC role
    - Pulls in SMEs as needed

P3/P4 Incident:
  Roles Required:
    - Single responder handles all roles

  Activation:
    - Assigned to team member
    - No formal structure needed

Communication Protocols

Communication Channels

War Room (Slack Channel):
  Purpose: Real-time coordination during active incident
  Naming: #incident-YYYY-MM-DD-description
  Participants: All responders
  Content:
    - Findings and hypotheses
    - Actions being taken
    - Requests for help
    - Decisions made
  Rules:
    - Stay on topic (incident only)
    - Use threads for side discussions
    - No blame or speculation about causes

  Example:
    #incident-2025-01-15-api-outage

Status Page (External):
  Purpose: Customer-facing incident communication
  URL: status.company.com
  Update Frequency:
    - P1: Every 15-30 minutes
    - P2: Every 1-2 hours
    - P3: Daily
  Content Template:
    - What is affected
    - Current status
    - Estimated resolution time (if known)
    - Workarounds (if available)
    - Next update time

Internal Stakeholder Updates:
  Purpose: Keep leadership and affected teams informed
  Channels:
    - Email to [email removed]
    - Slack to #incidents
    - Direct message to executives (P1 only)
  Update Frequency:
    - P1: Every 30 minutes
    - P2: Every 2 hours
    - P3: End of day
  Content Template:
    - Impact summary (users affected, revenue impact)
    - Current status
    - Actions being taken
    - Estimated resolution

Customer Support:
  Purpose: Equip support team to handle customer inquiries
  Channels:
    - Update internal wiki/knowledge base
    - Post in #support channel
    - Provide canned responses
  Update Frequency:
    - Immediately when incident declared
    - When status changes
    - When resolved

Communication Templates

# Initial Incident Notification (Internal)

Subject: [P1] API Service Outage - Investigating

SEVERITY: Priority 1 (Critical)
STATUS: Investigating
IMPACT: All API requests failing with 503 errors, affecting 100% of users
STARTED: 2025-01-15 14:32 UTC
INCIDENT COMMANDER: Jane Doe

CURRENT SITUATION:
- API gateway returning 503 errors
- All downstream services appear healthy
- Investigating gateway configuration

ACTIONS TAKEN:
- Incident declared at 14:35 UTC
- War room established: #incident-2025-01-15-api-outage
- Team paged and responding

NEXT STEPS:
- Reviewing recent deployments
- Checking gateway logs
- Preparing rollback plan

NEXT UPDATE: 15:00 UTC (in 30 minutes)

---

# Status Update (Internal)

Subject: [P1] API Service Outage - Root Cause Identified

SEVERITY: Priority 1 (Critical)
STATUS: Identified → Resolving
IMPACT: All API requests failing, affecting 100% of users
DURATION: 25 minutes
INCIDENT COMMANDER: Jane Doe

ROOT CAUSE:
- Deployment at 14:28 UTC introduced configuration error
- API gateway max connections set to 10 (should be 10000)

ACTIONS TAKEN:
- Root cause identified via gateway logs
- Rollback initiated at 14:52 UTC
- Rollback completed at 14:55 UTC
- Service returning to normal

CURRENT STATUS:
- Error rate dropping from 100% to 5%
- Monitoring for full recovery
- ETA to full resolution: 15:05 UTC

NEXT UPDATE: 15:10 UTC

---

# Resolution Notification (Internal)

Subject: [P1] API Service Outage - RESOLVED

SEVERITY: Priority 1 (Critical) → RESOLVED
STATUS: Resolved
IMPACT: All API requests were failing for 28 minutes
DURATION: 28 minutes (14:32 - 15:00 UTC)
INCIDENT COMMANDER: Jane Doe

RESOLUTION:
- Service fully restored at 15:00 UTC
- Root cause: Configuration error in deployment
- Fix: Rolled back to previous version

IMPACT SUMMARY:
- Duration: 28 minutes
- Users Affected: ~50,000 (100% of active users)
- Failed Requests: ~2.1 million
- Revenue Impact: ~$4,700 (estimated)

FOLLOW-UP ACTIONS:
- Post-incident review scheduled: 2025-01-16 10:00 UTC
- Ticket created to add validation to deployment pipeline
- Runbook updated with troubleshooting steps

Thank you to all responders: Jane Doe, John Smith, Alice Johnson

---

# Customer Status Page Update

Title: API Service Disruption

[Resolved] - Jan 15, 15:00 UTC
We have resolved the issue affecting API requests. All services are now operating normally. We apologize for the disruption and are conducting a thorough review to prevent similar issues.

[Update] - Jan 15, 14:55 UTC
We have identified the root cause and implemented a fix. Service is returning to normal. We expect full resolution within 5 minutes.

[Investigating] - Jan 15, 14:35 UTC
We are currently investigating an issue affecting API requests. Users may experience errors when accessing our service. Our team is actively working on a resolution. We will provide an update in 30 minutes.

WORKAROUND: None available at this time.

If you have questions, please contact [email removed].

Root Cause Analysis

The 5 Whys Technique

Example: Website Down

Symptom: Website returning 503 errors

Why 1: Why is the website down?
  → The load balancer is marking all backend servers as unhealthy

Why 2: Why is the load balancer marking servers as unhealthy?
  → Health check requests are timing out after 2 seconds

Why 3: Why are health checks timing out?
  → Application is taking 5+ seconds to respond to health checks

Why 4: Why is the application slow to respond?
  → Database connection pool is exhausted (all connections in use)

Why 5: Why is the connection pool exhausted?
  → Recent deployment increased default connection timeout from 5s to 60s,
     causing connections to be held longer

ROOT CAUSE: Configuration change in deployment increased connection timeout,
causing connection pool exhaustion and cascading failure.

CORRECTIVE ACTIONS:
- Immediate: Rollback deployment
- Short-term: Add connection pool monitoring and alerting
- Long-term: Review and test all timeout configurations, add capacity planning

Fishbone (Ishikawa) Diagram

                                    Website Down (503 Errors)
                                            ↑
        ┌──────────────┬───────────────────┼───────────────────┬──────────────┐
        │              │                   │                   │              │
    METHODS         MACHINES           MATERIALS          MANPOWER       ENVIRONMENT
        │              │                   │                   │              │
    Deployment    Load Balancer      Configuration      On-call team    Traffic spike
    process          │                     │                   │              │
        │        Health checks        Timeout settings    Understaffed   Peak hours
    No staging   not tuned              │                  Inexperienced      │
    validation       │              Connection pool        │              Sudden load
        │        Timeout: 2s         size: 10           No runbook          │
    No rollback      │                     │                   │          DDoS attack?
    plan         Backend slow        Default settings    No training         │
        │              │              not reviewed            │          Geographic
    Auto-deploy  App response: 5s         │              Poor documentation  event
        │              │                   │                   │              │
        └──────────────┴───────────────────┴───────────────────┴──────────────┘
                                            ↓
                          Contributing Factors Analysis

Fault Tree Analysis

                       Website Unavailable
                              ↑
                    ┌─────────┴─────────┐
                    │         OR        │
        ┌───────────┴───────┐       ┌───┴──────────┐
   Load Balancer        Backend Servers    DNS Failure
      Failure               Down               (rare)
        ↑                    ↑
        │          ┌─────────┴─────────┐
        │          │        AND        │
        │    ┌─────┴────┐         ┌────┴─────┐
        │   All Servers    Health Check
        │   Unhealthy        Failing
        │      ↑                 ↑
        │      │                 │
    Config  Database      Response Time
    Error   Overload         > Timeout
        ↑      ↑                 ↑
        │      │            ┌────┴────┐
   Deploy   Connection     │   OR    │
   Failed  Pool Full   ┌───┴───┐ ┌───┴───┐
              ↑        │       │ │       │
         Timeout   Slow    Database
         Too High  Query   Connection
                           Pool Size
                           Too Small

ROOT CAUSE PATH (highlighted):
Website Unavailable ← Backend Servers Down ← All Servers Unhealthy
← Health Check Failing ← Response Time > Timeout ← Connection Pool Full
← Timeout Too High ← Deploy Failed (config error)

Timeline Analysis

Incident Timeline: 2025-01-15 API Outage

14:28:00 - Deployment started (v2.3.1)
14:30:00 - Deployment completed successfully
14:32:00 - First spike in error rate (5% → 20%)
14:32:30 - Error rate continues climbing (20% → 50%)
14:33:00 - Complete outage (100% errors)
14:33:15 - Automated alert fired: "High error rate"
14:33:45 - PagerDuty page sent to on-call
14:35:00 - On-call acknowledged alert [MTTA: 1m 45s]
14:36:00 - Incident declared P1, war room created
14:37:00 - Dashboard review shows all backend servers marked unhealthy
14:38:00 - Health check logs show timeouts
14:40:00 - Application logs show slow responses on /health endpoint
14:42:00 - Database connection pool exhaustion identified
14:45:00 - Recent deployment suspected
14:48:00 - Config diff reveals timeout change: 5s → 60s
14:50:00 - Decision made to rollback
14:52:00 - Rollback initiated
14:55:00 - Rollback completed
14:56:00 - Error rate dropping (100% → 10%)
14:58:00 - Error rate normal (< 1%)
15:00:00 - Monitoring for 5 minutes, no new errors
15:05:00 - Incident declared resolved [MTTR: 30 minutes]

Key Insights:
- Detection delay: 3 minutes (first error to alert)
- Response time: 2 minutes (alert to war room)
- Investigation time: 15 minutes (war room to root cause)
- Resolution time: 8 minutes (decision to rollback complete)
- Recovery time: 5 minutes (rollback to normal)

Contributing Factors:
- ✓ Automated alerting worked
- ✓ On-call response was fast
- ✗ No pre-deployment config validation
- ✗ Timeout change not reviewed in code review
- ✗ Health check timeout not considered during testing
- ✗ No staging environment to catch issue

Post-Incident Reviews

Blameless Post-Mortem Principles

Core Values:
  1. No Blame or Punishment:
     - Focus on systems and processes, not individuals
     - Assume everyone acted with best intentions
     - Create psychological safety for honest discussion

  2. Learning Over Judgment:
     - Goal is to improve, not to find fault
     - Celebrate what went well
     - Identify opportunities for improvement

  3. Systems Thinking:
     - Complex systems have complex failures
     - Multiple contributing factors, not single root cause
     - Focus on increasing system resilience

  4. Actionable Outcomes:
     - Every insight must lead to action item
     - Action items must have owners and due dates
     - Track action items to completion

  5. Shared Learning:
     - Share findings with entire organization
     - Build institutional knowledge
     - Prevent similar incidents elsewhere

Post-Incident Review Template

# Post-Incident Review: API Outage - 2025-01-15

## Metadata
- **Date**: 2025-01-15
- **Duration**: 28 minutes (14:32 - 15:00 UTC)
- **Severity**: P1 (Critical)
- **Incident Commander**: Jane Doe
- **Services Affected**: API Gateway, All API Endpoints
- **Users Impacted**: ~50,000 (100% of active users)

## Executive Summary
On January 15, 2025, our API service experienced a complete outage lasting 28 minutes. A configuration error in a routine deployment caused the database connection pool to exhaust, leading to health check failures and all backend servers being marked unhealthy by the load balancer. The issue was resolved by rolling back the deployment. No data was lost, but approximately $4,700 in revenue was impacted.

## What Happened (Timeline)
[Detailed timeline from Timeline Analysis section above]

## Impact Assessment

### User Impact
- **Affected Users**: 50,000 active users (100%)
- **User Experience**: Complete inability to access any API functionality
- **Customer Complaints**: 127 support tickets filed
- **Duration**: 28 minutes

### Business Impact
- **Revenue Loss**: ~$4,700 (estimated from transaction volume)
- **SLA Breach**: Monthly SLO of 99.9% consumed 67% of error budget
- **Reputation**: High-profile users tweeted about outage
- **Support Cost**: ~40 hours of support time responding to tickets

### Technical Impact
- **Failed Requests**: ~2.1 million
- **Data Loss**: None
- **Services Affected**: All API endpoints
- **Downstream Dependencies**: Mobile app, web app, third-party integrations

## Root Cause Analysis

### Immediate Cause
Load balancer marked all backend servers as unhealthy because health check requests exceeded the 2-second timeout.

### Contributing Factors
1. **Configuration Change**: Deployment v2.3.1 changed database connection timeout from 5s to 60s
2. **Connection Pool Exhaustion**: Longer timeouts caused connections to be held longer, exhausting the pool (max 10 connections)
3. **Slow Health Checks**: With no available connections, health check endpoint took 5+ seconds to respond
4. **Health Check Timeout**: Load balancer timeout (2s) was lower than application response time (5s)
5. **Lack of Validation**: Configuration change not flagged in code review or tested in staging

### Root Cause
A configuration change increasing database timeout was not properly reviewed or tested, leading to connection pool exhaustion and cascading failure when deployed to production.

## What Went Well

### Detection
✓ Automated monitoring detected issue within 3 minutes of complete outage
✓ Alert fired appropriately with correct severity
✓ On-call engineer acknowledged within 2 minutes

### Response
✓ Incident Commander immediately declared P1 and activated full response
✓ War room established quickly with all necessary responders
✓ Clear role assignments (IC, TL, Scribe, Comms)
✓ Excellent communication throughout incident
✓ Rollback decision made decisively once root cause identified

### Recovery
✓ Rollback executed cleanly without issues
✓ Service recovered fully within 5 minutes of rollback
✓ No data loss or corruption
✓ Post-incident review scheduled promptly

## What Could Be Improved

### Prevention
✗ Configuration changes should be validated automatically
✗ Code review didn't catch the impact of timeout change
✗ No staging environment to test configuration changes
✗ Connection pool size (10) too small for production load

### Detection
✗ 3-minute delay between first errors and alert (gradual degradation not caught)
✗ No alerting on connection pool saturation
✗ Health check failures not alerted separately

### Response
✗ Took 15 minutes to identify root cause (need better debugging tools)
✗ No runbook for "all servers unhealthy" scenario
✗ Rollback procedure not documented (relied on tribal knowledge)

### Systemic Issues
✗ No automated rollback on deployment failures
✗ Configuration changes deployed same as code changes (should have different process)
✗ No capacity planning for connection pools
✗ Health check timeout not aligned with application timeouts

## Action Items

### Immediate (1 week)
- [ ] **Add connection pool monitoring** [Owner: John Smith] [Due: 2025-01-22]
  - Alert at 70% utilization (warning)
  - Alert at 85% utilization (critical)

- [ ] **Increase connection pool size** [Owner: Alice Johnson] [Due: 2025-01-22]
  - Calculate appropriate size based on load testing
  - Implement in production (target: 50-100 connections)

- [ ] **Create runbook for "All servers unhealthy"** [Owner: Jane Doe] [Due: 2025-01-22]
  - Document diagnostic steps
  - Include rollback procedure
  - Add to on-call documentation

### Short-term (1 month)
- [ ] **Implement configuration validation** [Owner: Platform Team] [Due: 2025-02-15]
  - Add pre-deployment checks for timeout values
  - Validate connection pool size vs timeout settings
  - Block deployments that fail validation

- [ ] **Set up staging environment** [Owner: DevOps Team] [Due: 2025-02-15]
  - Production-like configuration
  - Automated deployment testing
  - Required step before production deployment

- [ ] **Align health check timeouts** [Owner: Infrastructure Team] [Due: 2025-02-15]
  - Load balancer timeout should be > app timeout
  - Document timeout hierarchy
  - Automate timeout configuration

- [ ] **Implement gradual rollout** [Owner: Platform Team] [Due: 2025-02-28]
  - Canary deployments (10% → 50% → 100%)
  - Automatic rollback on error rate increase
  - Deployment gates based on metrics

### Long-term (3 months)
- [ ] **Separate config deployment pipeline** [Owner: Architecture Team] [Due: 2025-04-15]
  - Configuration changes reviewed by ops team
  - Gradual rollout for config changes
  - Different approval process than code

- [ ] **Implement synthetic monitoring** [Owner: Observability Team] [Due: 2025-04-15]
  - Proactive health checks from external monitors
  - Alert before complete outage
  - Detect gradual degradation earlier

- [ ] **Capacity planning framework** [Owner: SRE Team] [Due: 2025-04-30]
  - Document sizing guidelines for connection pools
  - Load testing requirements
  - Automated capacity recommendations

## Lessons Learned

1. **Configuration is Code**: Configuration changes should be treated with the same rigor as code changes, including review, testing, and validation.

2. **Test in Staging**: A production-like staging environment would have caught this issue before it reached production.

3. **Cascading Failures**: Small changes (timeout adjustment) can have large, unexpected effects. Better understanding of system interactions is needed.

4. **Alerting Gaps**: We alerted on symptoms (errors) but not leading indicators (connection pool saturation). Adding more proactive monitoring would enable earlier intervention.

5. **Response Worked Well**: Despite the outage, our incident response process performed admirably. Clear roles, good communication, and decisive action led to fast resolution.

## Appendix

### Supporting Data
- [Link to Grafana Dashboard during incident]
- [Link to error logs]
- [Link to deployment change log]
- [Link to war room Slack thread]

### Glossary
- **MTTA**: Mean Time to Acknowledge
- **MTTR**: Mean Time to Recovery
- **SLO**: Service Level Objective

### Related Incidents
- 2024-11-03: Database connection pool exhaustion (different cause)
- 2024-09-12: Health check timeout issues on Redis

### Review Attendees
- Jane Doe (Incident Commander)
- John Smith (Technical Lead)
- Alice Johnson (Engineering Manager)
- Bob Wilson (Product Manager)
- Carol Martinez (Customer Success)

Post-Incident Review Meeting Agenda

Duration: 60 minutes

00:00-00:05 (5 min): Intro and Ground Rules
  - Reminder: Blameless, focus on learning
  - Goal: Improve systems and processes
  - Everyone encouraged to participate

00:05-00:15 (10 min): Timeline Walkthrough
  - Incident Commander presents timeline
  - Highlight key events
  - Clarifying questions only (no analysis yet)

00:15-00:25 (10 min): What Went Well
  - Celebrate successes
  - What should we keep doing?
  - What practices helped us respond effectively?

00:25-00:40 (15 min): What Could Be Improved
  - Open discussion
  - What could we have done differently?
  - What prevented faster detection/resolution?
  - Surface systemic issues

00:40-00:55 (15 min): Action Items
  - Brainstorm improvements
  - Prioritize by impact and effort
  - Assign owners and due dates
  - Ensure items are specific and actionable

00:55-01:00 (5 min): Wrap-up
  - Review action items
  - Schedule follow-ups
  - Thank participants

On-Call Management

On-Call Rotation Best Practices

Rotation Schedule:
  Primary On-Call:
    Duration: 1 week (Monday-Monday)
    Responsibilities: First responder for all alerts
    Compensation: Stipend + time off

The text continues at the source. Read the rest.

Source: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/it-operations/reference/incident-management.md

Author: davila7, Claude Code templates (davila7). License: MIT.

Shown here with formatting for the web; email addresses removed. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The Claude Code library holds 13,843 entries. Members can search all of them by meaning and read every one in full.