Unit 8 of 9 · about 3 hours · implement
Backups, runbooks, incident timelines and postmortems
All earlier evidence pays off here. Assumed background: hypothesis-driven debugging from the Programming testing-debugging-reproducibility units. This unit turns it into team procedure: timelines, roles, runbooks and postmortems.
You'll be able to
- Work a timeline from telemetry and state detection, diagnosis, mitigation and recovery times.
- Execute a runbook for process death, dependency outage, bad rollout, corrupt state and overload, and verify restore against RPO and RTO.
- Write a blameless postmortem with owned action items and one regression guard.
Covers
Read
In this order, only the parts listed
0 of 5 done
- Troubleshooting methodGoogle Site Reliability Engineering - selected core chapters
Triage; Examine (Logging); Diagnose (Simplify and reduce; Ask what, where and why); Test and Treat; Negative Results Are Magic
- Incident response roles and drillsGoogle SRE Workbook - SLO, load, incident and canary exercises
Incident Management at Google (Incident Command System; Main Roles in Incident Response); Putting Best Practices into Practice (Prepare Beforehand; Drills)
- Postmortem cultureGoogle SRE Workbook - SLO, load, incident and canary exercises
Bad Postmortem versus Good Postmortem (satellite diskerase: context, blamelessness, concrete action items with owners); Organizational Incentives (Reward action item closeout)
- Disaster testing disciplineGoogle Site Reliability Engineering - selected core chapters
Testing Disaster
Read for restore-verification discipline only: backups count when a drill restores them inside RPO and RTO.
- Runbook and artifact evidencePython Experimental Systems Kit - measurement slice
Failure-injection requirements (worker crash and hang, corrupt partial run, incompatible resume); Measurement requirements (distributions, queue occupancy, failed and retried work); Milestone F (reviewer-seeded unseen failure diagnosed from artifacts); short runbook for interrupted, hung or corrupt runs
Focus on
- Timelines carry times, not adjectives: detected at, diagnosed at, mitigated at, recovered at, plus measured RTO and RPO loss counted from the newest restorable record.
- Runbooks are tested procedures with owners: one each for process death, dependency outage, bad rollout, corrupt state and capacity exhaustion, each ending in a verified restore.
- Good postmortems are blameless, prompt and owned: context, mechanism, action items with owners and dates, and one regression guard that fails if the bug returns.
- Negative results are evidence. A ruled-out cause with its test stays in the timeline so the next responder does not repeat it.
Common mistakes · 3
- Declaring recovery at mitigation. Recovery is verified restore plus SLO compliance over the window, not the moment the alert clears.
- Writing the postmortem as verdict. Blame ends inquiry; mechanism plus owned actions prevent recurrence.
- Trusting untested backups. An unverified backup is a hope; restore drills against RPO and RTO are the practice.
Try it yourself
Closed-book, before checking anything
Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.The alert clears 10 minutes after the fix but p99 stays high for an hour. Recovered at 10 minutes?Answer
No. Recovery needs restored SLO compliance; the tail shows continued user impact or a second fault.
2.Two responders each fixed something but the timeline shows one fix. Problem?Answer
Yes. The timeline must record every action with times, or the next incident repeats the hidden work and misattributes the cure.
3.A restore drill recovers everything but the last 90 minutes with RPO 1 hour. Pass?Answer
No. Loss exceeds RPO; shorten the backup interval or narrow the loss window, then re-drill.
4.Action item reads improve monitoring with no owner. Accept?Answer
No. Owned, dated and verifiable, plus a regression guard; otherwise it never closes.
You're done when
Your timeline, runbook run, restore drill and postmortem exist as artifacts, and the regression test fails on the re-seeded fault.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 4 more in the section
- Google Site Reliability Engineering - selected core chaptersGoogle SRE · primary
Read Chapters 3, 4, 6, 10, 12, 17, 19-22: risk, SLOs, monitoring, alerting, troubleshooting, reliability tests, load balancing, overload and cascading failure. Apply every concept to the same bounded RPC and store rather than inventing separate examples.
- Google SRE Workbook - SLO, load, incident and canary exercisesGoogle SRE · required
Use Chapters 2, 4, 9-11, 12, 14, 16 and 17. Define one SLO, estimate capacity, load through saturation, canary a changed version, roll it back, and write one evidence-based incident timeline.
- Python Experimental Systems Kit - measurement sliceRoadmap-Final · support
Use its artifact, bounded-pipeline, failure-injection, profiling and reproducibility requirements as the evidence checklist. Reuse the current service instead of building the full project again.
Also in this section
- OpenTelemetry Python - metrics, logs and tracesOpenTelemetry · required
Instrument request ID, queue wait, handler time, storage time, status and bounded labels. Export locally, retain raw load records and verify that instrumentation does not hide the bottleneck or create unbounded cardinality.
- AlgoMaster System Design - quantitative and failure drillsAlgoMaster · support
Use Solve Little's Law, Calculate System Availability, Plan Reliability Recovery Targets, Calculate Amdahl's Law Speedup, Analyze Capacity Bottlenecks, Simulate Partition Quorums and Audit Failure Domains only after producing your own estimates. Compare the platform answer with measured service behavior.
- Gil Tene - How NOT to Measure Latency (talk)Strange Loop Conference via YouTube · support
Use for coordinated-omission vocabulary only: closed-loop testers that wait for each reply, the missing samples under queueing, and the correction concept of recording intended send time. Do not adopt
wrk,heyorab; write the small Python generator in the saturation unit instead. - M/M/1 queue - model definition and stationary analysisWikipedia · reference
Read Model definition (Poisson arrivals, exponential service, single server, infinite buffer, FIFO) and Stationary analysis (stability , , , response time via Little's Law). Use the closed forms as approximations with assumptions stated, checked by your own simulation.