Controlled failure drills and recovery runbooks
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Use only the fictional worksheet for this exercise. Before a separately authorized read-only server query, verify the effective endpoint including environment overrides, project or cluster identity, and access scope. Never deploy the fragments, use real credentials or transmit private inspection output.
Synthetic tabletop incident:10:00 baseline acceptance passes10:05 fictional app dependency outage; proxy returns 50310:06 alert received; incident lead acknowledges10:10 evidence: dependency unavailable; database writes paused10:15 fictional dependency recovers10:17 synthetic read/write acceptance passesStop condition: any unexpected host or data impactNo live fault injection is performed.Before an isolated drill, define permitted resources, duration, recovery mechanism, baseline, abort authority and communication. Use synthetic data and choose one reversible fault at a time; a tabletop simulation requires no service changes. At detection, verify context, record symptoms and timestamps, inspect relevant sanitized logs and status, and protect persistent data. Avoid restarting every service because this destroys evidence and may worsen disruption. Record recovery time from the agreed start to verified service restoration; in this example outage duration is 12 minutes from 10:05 to 10:17. After recovery, check business transactions, data integrity, queue backlog and alert clearing. Capture gaps, owners and deadlines without blaming operators. Do not execute outages on shared or production systems without separate authorization and safeguards. Distinguish dependency recovery at 10:15 from verified service recovery at 10:17. The recorded 12-minute outage is a tabletop result; do not treat it as a measured SLO. Record incident start, alert, acknowledgement and verified restoration separately.
Common mistake
A cleared alert is not proof of recovery. Confirm service behavior and data integrity before closing the incident.
Manual practice
Write a tabletop runbook for a fictional proxy failure. Include detection, owner, safe evidence collection, abort conditions, restoration checks and a follow-up action. Compute the outage duration in the supplied timeline.
Worksheet: lab-fixtures/docker-production-deployment/09-failure-drills/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Controlled failure drills and recovery runbooks — Knowledge check
Interpret production deployment evidence and make a safe operational decision.
What should be defined before a drill?
What is the outage duration in the example?
When should the incident be closed?