Guide

Running an incident and writing the postmortem: a practical guide for small teams

Published · 9 minute read

Most of what makes an incident go badly is not technical. It is five people investigating the same thing while nobody tells customers anything, or a fix being deployed while someone else rolls back. The practices below are borrowed from emergency services and from large engineering organisations, cut down to what a team of five to fifty can actually use.

Decide in advance what counts as an incident

Teams lose the first twenty minutes arguing about whether something is "really" an incident. Settle it beforehand with a short severity scale that is based on impact, not on cause:

LevelMeaningResponse
SEV 1The product is unusable for most customers, or data is being lost or exposedEveryone needed, immediately, at any hour
SEV 2A major feature is broken, or a large group of customers is affectedOn-call responds now; others join in working hours
SEV 3A minor feature is degraded and a workaround existsHandled in working hours

Two rules make the scale work. Anyone may declare an incident, without asking permission. And when in doubt, declare it and choose the higher level: standing down from a false alarm costs minutes, while a late start costs hours.

Three roles, even on a tiny team

With three people, each takes one role. With two, the commander also handles communications. The roles are about function, not seniority: the most experienced engineer is often more useful investigating than commanding. If the commander needs to step away, they hand over explicitly and say so in the channel.

Mitigate first, diagnose later

The instinct of an engineer is to understand the problem. During an incident the goal is different: stop the harm. Those are separate activities, and the first almost never requires the second.

Ask "what would make this stop hurting customers right now?" before "why is this happening?". The usual answers are dull and quick:

"What changed?" is the most productive question in incident response, since most incidents follow a change. A rollback is nearly always faster and safer than a forward fix written under pressure. Understanding the root of the problem can wait until customers are no longer affected.

Communicate on a schedule

Silence is read as "nobody is working on it". Promise the next update at a stated time, and post at that time even when there is nothing new:

14:20 UTC — We are investigating errors when loading dashboards.
            Roughly a third of requests are failing. Next update by 14:50.
14:48 UTC — Cause not yet confirmed. We are rolling back this morning's
            release. Next update by 15:15.
15:05 UTC — Rollback complete; error rate is back to normal. We are
            monitoring and will confirm resolution by 15:35.

Say what users are experiencing, not what is wrong inside the system. Do not guess at causes or at a time to resolution; a missed estimate does more damage than no estimate. Use UTC in anything read across time zones.

Keep a timeline while it happens

Record observations, actions and decisions with a timestamp, as they happen:

14:07  Alert: checkout error rate above 5%
14:12  SEV 2 declared. IC: Priya. Comms: Sam. Scribe: Lee
14:19  Errors began at 13:58, two minutes after release 482
14:31  Decision: roll back 482 rather than patch forward
14:44  Rollback complete. Error rate 0.2% and falling

Four moments matter for the review: when the problem started, when it was detected, when it was mitigated, and when it was resolved. The gaps between them say where to invest. A long gap from start to detection is a monitoring problem. A long gap from detection to mitigation points at missing runbooks, slow rollbacks or unclear ownership. An incident timeline tool computes these gaps from your entries.

The review: blameless and specific

Hold the review within a few days, while memories are fresh. Its purpose is to make the next incident less likely or less damaging. It cannot do that unless people describe honestly what they saw and did, and they will not if the outcome is blame.

Blameless does not mean nobody did anything. It means treating a human action as a result to be explained, not as the explanation. "The engineer ran the migration against production" is where the inquiry starts. Why was that possible? What made it look like the right thing to do? What would have caught it? If one person could cause the outage with one plausible mistake, the system allowed it, and the system is what you can change.

Avoid looking for a single "root cause". Incidents in real systems come from several conditions lining up: a risky change, a missing test, an alert that was too quiet, a dashboard nobody was looking at. Call them contributing factors and list all of them.

What the document should contain

  1. Summary. Three or four sentences a non-engineer can follow: what broke, for whom, for how long.
  2. Impact. Numbers: customers affected, requests failed, duration, data lost or not.
  3. Timeline. From the scribe's notes, in UTC.
  4. Contributing factors. What made the failure possible, and what made it last as long as it did.
  5. What went well. The things to keep doing are as useful to know as the things to fix.
  6. Where we got lucky. The near misses that would have made it worse.
  7. Action items. Each with one named owner and a date.

Action items that get done

Most postmortems fail at this last step: a list of twelve good intentions, none of which is finished before the next incident. A few rules help.

Look after the people

An on-call rota that pages the same two people every week will lose them. Spread the load fairly, count nights and weekends separately, and give time back after a hard night. Long incidents need handovers: nobody makes good decisions in their sixth consecutive hour. A fair on-call rotation and a habit of handing over are as much a part of reliability as any technical safeguard.

Tools used in this guide

More guides