Releasing and running it · lesson 9 of 10
Ideas in this lesson
AIncidentan unplanned interruption users feel
BIncident commanderthe one person coordinating the response
CBlameless post-mortemwhat happened, why, and what changes, without blaming people

Incidents and post-mortems

Last updated

One Monday at 7:12, Pila stops replying to texts. Forty patients are waiting outside a health centre with no numbers. What the team does in the next hour, and what it does in the week after, decides whether this happens again. In this lesson you'll follow an incident minute by minute, learn the roles that keep a response calm, write a blameless post-mortem, and see how CrowdStrike explained the update that crashed millions of computers in 2024.

By the end of this lesson you can

  • Respond to an incident: detect, respond, recover, learn
  • Name the roles in an incident, and keep users informed
  • Write a blameless post-mortem that leads to real changes

Pila’s SMS outage

An incident is an unplanned interruption that users feel. Every team has them. What differs is how fast they're noticed and fixed, and whether the team learns from them. The Google SRE book's stages are detect, respond, recover, learn.

  1. 7:12 Replies stop Maintain
1 of 7 7:12. The SMS gateway starts refusing Pila’s replies. Texts still arrive and numbers are given, but patients get no message back. Nothing alerts: the team only monitors whether the server is up.

Roles and talking to users

When something breaks, everyone wants to help, and five people changing things at once makes it worse. The Google SRE book recommends clear roles, decided at the start:

Incident roles
RoleDoesIn Pila’s outage
Incident commanderCoordinates: decides who does what, keeps track, calls it overJun
OperationsInvestigates and fixes, and only they change the systemBea
CommunicationKeeps users and bosses informed, so the fixers aren’t interruptedRina

On a small team one person may hold two roles, but someone must always hold each. And tell users early, even before you know the cause: what's affected, what to do meanwhile, and when you'll update them next. Rina's notice and Ate Cora's paper numbers turned an outage into an inconvenience.

During the outage, Marco has an idea and starts restarting the database. What should happen?

Blameless post-mortems

After recovery, the team writes a post-mortem: what happened, why, and what will change. In 2012, John Allspaw, then at Etsy, described why it must be blameless. If people expect punishment, they leave out what they did and why it made sense at the time, and that's the information the team needs. People rarely set out to break things; their actions made sense given what they knew, and the post-mortem asks why the system made the mistake easy.

Blameless doesn't mean nobody is accountable. It means the team is accountable for fixing the system, and people are safe to tell the truth.

A tool teams use is the five whys: ask why, then why again, to dig below the first answer. Its limit is that real failures rarely have one chain of causes; ask “what else contributed?” as well, or you'll stop at a single convenient answer.

Write the post-mortem

Write Pila's post-mortem from the timeline in step 1. The checks will warn you if a cause names a person's mistake.

Post-mortem: SMS replies, MondayKept in this browser only
  • Gives the times (not yet)
  • Says how many were affected (not yet)
  • At least four times (not yet)
  • Mentions the key expiring (not yet)
  • Mentions the missing alert or monitoring (not yet)
  • Blames no one by name (done)
  • Names at least one thing (not yet)
  • At least two actions (not yet)
  • Each has an owner or date (not yet)
Write each part until its checks pass.

CrowdStrike, July 2024

One of the largest outages ever, as told in the company's own root cause analysis:

  1. Earlier in 2024 A new template type
1 of 5 Earlier in 2024. CrowdStrike, whose Falcon software protects Windows computers against attacks, adds a new kind of detection content. Its definition has 21 input fields; the code on each computer that reads it supplies 20. Tests at the time used content that didn’t touch the 21st.

Its lessons are this stage's lessons: a mismatch no test exercised (6.3), an update treated as too routine for the pipeline's care (7.5), and a release to everyone at once instead of a canary (7.6).

Spot the trap: “whose fault was it?”

Spot the trapKap. Ernesto

The day after the outage, Kap. Ernesto asks in the team meeting: “Whose fault was it? Who forgot the key?”

What happens if…

Check what you learned

What does the incident commander do?
Why should post-mortems be blameless?
What did CrowdStrike change about how content updates are released?

Sources

Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.

All sources for Simple Software Development