Course contents · Lesson 12 of 19

Incident Response Basics: What Happens When Apps Break

When Things Break · Lesson 12 of 19 · 11 min Engineer

It is 9:14 on a Saturday night and your phone buzzes: one in five checkout requests on your shop is failing. Four engineers join a chat. One reads logs, one wants to restart the database, one answers the boss, and nobody knows who decides. This lesson covers incident response basics: the steps from alert to review, who does what, how severity sets the pace, and why you stop the harm before hunting for the cause.

The lifecycle: from alert to review

Lesson 1 defined an incident as an unplanned problem that hurts users, and to mitigate as stopping the harm before you know the cause. Here is the whole path.

Detect. Ideally an alert fires first, such as the fast-burn alert from lesson 6, and pages the on-call engineer, whose turn it is to answer urgent alerts. They acknowledge the page, telling the paging tool someone is on it, so it stops escalating. If users report the problem before any alert does, your monitoring has a gap.

Declare. Saying "this is an incident" starts the process: roles, one channel and regular updates. Google's SRE book suggests declaring if you need a second team, customers can see the problem, or it is unsolved after an hour of focused work. Declaring early is cheap: you can close it quickly.

Triage and mitigate. Triage means judging how serious the problem is: set a severity and assign roles (both below), then stop the harm. Verify recovery with the SLI from lesson 5, the measurement of what users get, such as the share of checkouts that succeed. A fix that ran without errors is not proof; a healthy SLI is.

Resolve and review. Once users are unaffected and the service has stayed stable for a while, the person leading the response closes the incident, even if the permanent fix is still ahead. Within days comes the postmortem, a review of what happened and how to prevent it.

In the flowchart, notice the loop at step 6, and that the root cause appears only at the end.

Flowchart of the incident lifecycle. 1, an alert fires: a page or a user report. 2, the on-call engineer acknowledges it. 3, declare an incident, set the severity and open a channel. 4, assign roles: incident commander, ops, comms and scribe. 5, mitigate: roll back, fail over or turn a feature flag off. 6, verify: are users OK again? If no, try the next fix and mitigate again. If yes, 7, close: the incident commander ends the incident. 8, postmortem: find causes and fix them, with a note that the root cause is found here, after users are safe. A footer says that throughout there is one channel and one timeline, where the scribe logs every step with its time
The hunt for the root cause sits after the loop, not inside it.

Who does what: incident roles

The incident commander (IC) keeps the big picture, decides what to try next, hands out roles and holds any role not yet assigned. The IC stays off the keyboard on purpose: someone deep in a terminal cannot watch the whole incident. The on-call engineer is often IC until they hand over.

The operations lead (ops lead) runs the hands-on work: reading logs, running commands, changing systems. During the incident only the ops lead's team changes production, so nobody applies clashing fixes. They call in subject experts, such as the database team.

The communications lead (comms lead) updates stakeholders on a fixed schedule: the people affected or responsible, such as support staff, managers and customers. Customers often read a status page, a public page of outages. Regular updates stop people interrupting responders to ask.

Many teams add a scribe, who records what was seen, decided and done. In a small incident one person may hold several roles, as long as each role has a named owner. In the diagram, notice that every solid arrow starts at the IC: the hub, not the fixer.

Role diagram with the incident commander in the centre, who coordinates and decides but does not do the fixing. An arrow labelled directs goes to the operations lead on the left, who runs all hands-on fixes so changes do not collide, and calls in subject experts such as the database team. An arrow labelled briefs goes to the comms lead on the right, who keeps stakeholders updated on a schedule; regular updates go to support, managers and users. An arrow labelled logs every decision goes down to the scribe, who keeps the timeline. A footer says one person may hold several roles in a small incident, and the commander holds every role not yet handed out
The commander keeps everyone else effective, which is why that role sits in the middle.

Severity levels and what they trigger

A severity level labels how badly an incident hurts users, from SEV1, the worst, to SEV3 or beyond. Each level triggers a response agreed in advance, such as who is paged and how often updates go out, so nobody debates mid-incident whether to wake a manager. The table shows an illustrative scheme; real ones differ by company.

Illustrative table of severity levels. SEV1, critical: checkout down for all users, or data at risk; the on-call engineer and an incident commander are paged at once, day or night; updates every 30 minutes, plus the status page. SEV2, major: payments fail for some users, or one region is slow; the owning team's on-call is paged, with a separate incident commander if it grows; updates every 60 minutes inside the company. SEV3, minor: a minor bug with a workaround, such as slow images; nobody is paged, a ticket is handled in working hours; updates in the ticket when it changes. Footer: each company sets its own levels and times; if unsure, pick the higher level and downgrade later
Moving up one level changes who gets woken, not just the label.

Judge severity by harm to users, not by how alarming the cause looks, and raise it if the harm spreads. When unsure, pick the higher level: downgrading is cheap, while a late upgrade means help arrives late.

Mitigate first, find the root cause later

The root cause is the underlying reason an incident happened, such as a bug in Tuesday's release. Finding it can take hours, and meanwhile users keep failing and your error budget burns. So, like the ER team, you stabilise first. Three mitigations cover many incidents:

  • Roll back to the previous working version (lesson 6): the usual first move when trouble follows a release or configuration change.
  • Fail over to a healthy spare, such as a database replica or another availability zone (lesson 11).
  • Turn off a feature by flipping its feature flag, which disables code without a new deploy.

You need not know why a release broke checkout to roll it back, and if errors stop, you have also learned the release was involved. These moves are usually fast and reversible, so they come before the investigation.

Save evidence that costs seconds, such as the error message and a graph screenshot, since a restart can wipe the clues. Never let it delay the mitigation.

One channel and a running timeline

Keep all incident talk in one shared place, usually a chat channel opened for the incident; decisions made on a call get typed there too. Private side conversations leave the IC blind and the record full of gaps.

The scribe keeps a running timeline there: each entry has a time, what was seen, decided or done, and by whom, in one time zone such as UTC. An illustrative timeline for the opening's outage:

All times UTC
21:14  Page: checkout errors at 20 percent
21:16  Asha acknowledged, investigating
21:19  SEV2 declared. IC: Asha. Ops lead: Sam
21:24  Errors began 21:05, just after release 4.18
21:26  Decision: roll back to 4.17 (Sam)
21:33  Errors back below 0.1 percent, watching
21:58  Stable for 25 minutes. IC closed the incident

These lines show, without anyone's memory, that users were hurt for 28 minutes (21:05 to 21:33) and the alert took 9 of them. People misremember stressful nights, so the postmortem needs this record, and latecomers catch up by reading it. A later lesson turns it into a blameless postmortem.

Check yourself

Errors jump just after a release. One engineer wants to find the bug in the new code; another wants to roll back. Which comes first, and why?

Roll back. It stops the harm in minutes without knowing the cause, and if errors stop, the release was involved. The bug hunt can wait until users are safe.

Mid-incident, the incident commander starts debugging the database personally. What goes wrong?

Nobody is watching the whole incident, so updates, roles and the next decision stall. The IC should hand the hands-on work to the ops lead and keep coordinating.

A rarely used settings page breaks for a few users, and there is a workaround. Should anyone be paged at 3 a.m.?

No. Severity follows user impact, so in the example scheme this is a SEV3: a ticket for working hours. Paging for small problems wears people out for the real SEV1s.

Go deeper