Incident Response and Operational Runbooks

Incidents as business events, the response lifecycle, severity, three Apex incident scenarios and what a good runbook contains.

  • Advanced
  • About 19 minutes
  • Includes an exercise and a knowledge check

The concept Production incidents are business events

At 9:15 a.m. finance reports that reconciliation has stopped progressing. The dashboard loads and the API responds, but pending settlement records keep climbing. The team must identify the problem, contain the impact, recover safely and communicate clearly.

On the left, a photo of a fire drill with people in safety vests practicing. On the right, ten connected steps: detect, acknowledge, assess impact, assign owner, contain, investigate, recover, validate business data, communicate, review and learn. Below, an example severity scale: SEV 1 financial integrity risk or critical outage, SEV 2 major processing disruption, SEV 3 limited degradation with a workaround, SEV 4 minor; definitions are agreed with the customer.
Practice the fire before it starts.

Three scenarios How Apex incidents unfold

ScenarioSymptomsInvestigateRecover safely
A. Queue processing stoppedDepth and oldest age rising, API healthy, worker throughput zeroWorker health, recent deployments, worker logs, database connectivity, visibility and retries, dead letters, schema or config changesRestore or roll back the worker, watch the queue drain, reconcile expected and actual totals; never replay blindly
B. Database connections exhaustedLatency up, connection errors, timeouts, workers retryingActive connections, pool usage, long queries, lock waits, traffic changes, leaked connections, retry amplificationReduce concurrency, stop an identified runaway query through the approved process, fix the cause; a bigger pool can make it worse
C. Incorrect reconciliation resultsMatch rate changes, finance reports wrong matches after a rule releaseAffected records and time range, behavior versus the last approved versionStop or isolate the path, preserve evidence, block further changes, reprocess only with customer approval; never rewrite history silently

Be ready What a runbook contains

  • Trigger and impact: the symptom and who is affected.
  • Required permissions: the role needed, never a password.
  • Initial checks and diagnostics: dashboard links and safe read-only commands.
  • Containment, recovery and validation steps.
  • Escalation roles and customer communication guidance.

Practice Write runbooks and run a drill

Practical exercise

Exercise 09: three runbooks and one simulated incident

Write the three runbooks, then simulate one incident with an incident commander and an investigating engineer.

  1. Runbooks: queue processing stopped, database connections exhausted, incorrect reconciliation results.
  2. An incident timeline and a customer update.
  3. A post-incident review with owners and dates.
Show a sample customer update
  • 09:40, confirmed: settlement processing stopped at 08:52, after the 08:45 worker release. Payments are still being received and stored. No reconciliation results have been changed.
  • 09:40, not yet confirmed: whether any settlement records were partly processed before 08:52. We are checking the batch control totals. We are rolling back the worker. Next update at 10:10.
  • 11:05, recovered: processing resumed at 10:20. We declared recovery only after the batch matched its trailer (100,000 records and the control total), no record was posted twice, and reconciliation counts matched the expected file.

2 questions

Check your understanding

1. Workers stopped and the queue grew. What must you check before replaying messages?
2. Why can increasing the connection pool make scenario B worse?
Answer every question to submit.

What you can do now

  • Run an incident through its lifecycle.
  • Classify severity by business impact.
  • Write safe, useful runbooks.