Skip to content

Lesson 21 of 28Production ownership

Incident Response

Severity levels, incident roles, the incident channel, status updates and the first fifteen minutes of an outage, run calmly and in the right order.

18 min read0/5 questions

Being On Call covered the first minutes of a page when you are alone. When a problem needs several people at once, it becomes an incident. Tuesday, 11:20. Card payments are failing for about 30% of customers in Europe. Five engineers are in one Slack thread, each debugging something different. Two of them start rollbacks of two different services at the same moment. Support has forty tickets and no idea what to tell customers. A director asks "what's the ETA?" every three minutes. Nobody is writing anything down. The bug itself turns out to be simple, but the confusion around it doubles the outage. Incident response is the process that turns this into calm, coordinated work: clear roles, one place to talk, regular updates, and mitigation before investigation. You will take part in incidents within months of joining a team, and the people who stay calm and useful in them get noticed.

What counts as an incident

An incident is an unplanned event that disrupts or degrades a service, or threatens to: an outage, a serious slowdown, data loss or corruption, a security breach, or a problem that will become one of those soon if nobody acts (a certificate expiring in two hours, a disk that will be full by lunch). The key word is coordination. An incident is anything where you need more than one person working together on purpose, or where people outside the team need to be told.

Most companies grade incidents by severity. The names and exact criteria vary (some start at SEV0, some use P1 to P4), so learn your company's table. A typical one:

LevelExample criteriaResponse
SEV1Core journey down or badly broken for many users (checkout, login), data loss, active security breachPage now, all hands, IC assigned, status page, exec updates every 30 minutes
SEV2Major feature broken or slow for a significant share of users, or a core journey degraded with a workaroundPage the owning team, IC assigned, status page if customers notice
SEV3Minor feature broken, small group affected, workaround existsHandled by the owning team in working hours
SEV4Cosmetic issue or near miss, no real user impactA ticket, maybe a short write-up

Two rules make this table work. Declare early. If you are wondering whether something is an incident, declare it. Declaring is cheap: a channel, a role, a few messages. Not declaring is expensive, because the response starts late and nobody outside the thread knows. Downgrade freely. Starting at SEV2 and moving to SEV3 after ten minutes is a good outcome, not an embarrassment. Healthy teams praise people for declaring.

Quick check
Search results are missing products added in the last two hours, because the indexing job is stuck. Customers can still browse and buy. A fix is not obvious. What should you do?
Need a nudge? A hint rules out a wrong answer.

Roles: who does what

Incident roles come from the Incident Command System, which fire services in California developed in the 1970s after big wildfires showed that brave, skilled people fail when nobody is coordinating. Tech companies adopted it through Google's SRE practice, PagerDuty's public incident response guide, and others. There are four core roles.

  • Incident commander (IC). Owns the incident. Sets the severity, decides what happens next, assigns work, and makes the calls when people disagree ("we roll back now"). The IC does not debug. The moment the IC opens a terminal, nobody is watching the whole picture.
  • Operations or technical lead. Directs the hands-on investigation and mitigation, and reports findings to the IC. In bigger incidents several engineers work under this person.
  • Communications lead. Writes status updates on a schedule: the incident channel, the status page, support, leadership. They shield the responders from "any update?" messages.
  • Scribe. Keeps the timeline: what was seen, decided and done, with times. Often the communications lead does this too in smaller incidents.

In a small incident one or two people hold all the roles. That is fine, as long as the IC role is said out loud: "I'm IC." When the IC hands over, it is explicit too: "Priya, you're IC now, here's the summary," and Priya confirms.

Who talks to whom during an incident
Incident commander: decides, assignsIncident commanderdecides, assignsTech lead: directs the fixTech leaddirects the fixResponders: investigate, mitigateRespondersinvestigate, mitigateScribe: timelineScribetimelineComms lead: updates on a cadenceComms leadupdates on a cadenceSupport, status page, execs: outside the incidentSupport, status page, execsoutside the incidentfindingsresultsdecisionsfactsupdates

The IC sits in the middle and holds the whole picture. Everything important flows through them, and they do not have their hands on a keyboard.

1/4
Match the pairs0/5 matched

Match each task to the role that should do it.

Choose an item, then its match on the other side.

The lifecycle of an incident

Every incident moves through the same stages. Knowing which one you are in tells you what to focus on.

From first signal to follow-up
  1. Detect

    Something notices

    An alert, a customer report, a teammate. Time to detect is often the biggest part of an outage, so good alerts matter more than fast debugging.

  2. Triage

    Declare and organise

    Confirm the impact, pick a severity, open the channel, name the IC. A few minutes, not more.

  3. Mitigate

    Stop the user pain

    Roll back, flip a flag, fail over, shed load. Users are fine again even if you do not know why yet.

  4. Resolve

    Fix it properly

    Find the cause, ship a real fix, confirm the system is stable. The incident is closed, often at a lower severity.

  5. Follow up

    Learn from it

    Write the postmortem, agree action items with owners, and track them to done.

Note the difference between mitigated and resolved. Mitigated means users are no longer hurting. Resolved means the underlying problem is fixed. They can be hours or days apart, and that is fine: once you are mitigated, the pressure is off and you can fix it carefully, often at a lower severity and in working hours.

The scribe's timeline gives you the numbers postmortems and reliability reviews use.

Pythonincident_times.py
from datetime import datetime # The scribe's timeline from the incident channel (all times UTC).timeline = [ ("11:02", "start", "Release 7.3.0 reaches 100% of EU payment pods"), ("11:09", "detect", "Burn-rate alert pages the payments primary"), ("11:12", "note", "Primary confirms ~30% of EU card payments failing"), ("11:14", "declare", "SEV1 declared, #inc-payments-eu opened, Priya is IC"), ("11:19", "note", "Status page: investigating failed card payments in Europe"), ("11:23", "mitigate", "Rollback of payments to 7.2.4 started"), ("11:31", "mitigated", "EU error rate back to baseline"), ("12:05", "note", "Fix identified: currency rounding for one card network"), ("13:40", "resolved", "7.3.1 with fix deployed and verified; incident resolved"),] at = {kind: datetime.strptime(t, "%H:%M") for t, kind, _ in timeline} def minutes(a, b): return int((at[b] - at[a]).total_seconds() // 60) print(f"time to detect: {minutes('start', 'detect'):3} min")print(f"time to declare: {minutes('detect', 'declare'):3} min")print(f"time to mitigate: {minutes('start', 'mitigated'):3} min (user impact)")print(f"time to resolve: {minutes('start', 'resolved'):3} min")
Output
Press Run (⌘ Enter) to see what happens.

Users felt 29 minutes. The fix took over two and a half hours, but nobody outside the team cared, because the rollback had already ended the impact. That gap is the whole argument for mitigating first.

Predict the outputPython

Using the same minutes helper, how long did it take from declaring the incident to being mitigated?

print(minutes("declare", "mitigated"))
Need a nudge? Hints walk you through it.

Running the incident channel

One incident gets one channel, named so people can find it, such as #inc-2291-payments-eu. Many teams use a bot (incident.io, PagerDuty, Rootly, FireHydrant or a home-made one) that creates the channel, pages roles, and keeps the timeline from messages. For a SEV1, add a video call for the responders, but keep decisions written in the channel, because people join late and the call has no history.

Three habits keep the channel useful.

A pinned summary at the top, updated as things change: severity, IC, impact, current status, what is being tried, next update time. Someone joining at minute 40 reads that and is useful in one minute instead of asking "what's going on?"

Announce actions before you take them. "I'm going to roll back payments-api to 7.2.4 in the EU region. Any objections in the next minute?" This is how you avoid two people rolling back two things at once. The IC says yes or no.

Status updates on a cadence, even when nothing is new. A SEV1 might update every 30 minutes, a SEV2 every hour. Always give the time of the next update. "No change, still testing the rollback, next update 12:00" is a good update, because it stops ten people asking.

A good internal status update
[SEV1] Card payments failing in EU | IC: Priya | 11:35 UTC
 
Impact: about 30% of EU card payments failed between 11:02 and 11:31. Now back to normal.
Status: MITIGATED. We rolled back payments-api to 7.2.4 at 11:23.
Cause: under investigation. The failures started with release 7.3.0.
Next: confirming stability for 30 minutes, then planning the fix.
Next update: 12:05 UTC, or sooner if anything changes.

Talking to people outside the team

Customers, support and leadership need different things from you, and none of them need stack traces.

A status page update says, in user terms: what is affected, who is affected, whether there is a workaround, and when the next update comes. It does not guess at the root cause, blame a vendor, promise a fix time you cannot keep, mention internal service names, or say "no data was affected" unless you have confirmed it. Anything involving a security breach or personal data goes through your security and legal teams before it goes public, because there may be legal deadlines and wording rules.

Support needs a short script: what customers see, what to tell them, and whether to retry. Leadership needs impact, status and the next decision in three lines. "What's the ETA?" usually means "how worried should I be?" Answer that honestly ("users are fine again since 11:31; the permanent fix is low risk and will land this afternoon") rather than inventing a time.

Quick check
Which status page message is the best one, 20 minutes into the payments outage?
Need a nudge? A hint rules out a wrong answer.

Common mitigations

You will reach for the same handful of moves again and again. Know their costs before you need them.

MitigationWhen it fitsWatch out for
Roll backA deploy lines up with the startDatabase migrations that old code cannot handle
Disable a feature flagThe new behaviour is behind a flagFlags that other features now depend on
Fail overOne region, zone or replica is unhealthyThe healthy side must have room for all the traffic
Rate limit or shed loadA traffic spike or one abusive clientMake sure you limit the right callers
Scale up or outReal load, saturated poolsDoes not help if the bottleneck is a shared database
Block trafficAn attack, or a bad botCollateral damage to real users behind the same IPs
Restore from backupData loss or corruptionSlow, and loses writes since the backup

The best mitigations are prepared before any incident: one-click rollbacks, flags around risky features, runbooks that name the exact command. Being On Call covers practicing them before your first shift.

Etiquette: how to be useful in an incident

  • One voice decides. Suggest freely, but the IC chooses. Do not act on your own because you are sure.
  • No blame, in the channel or anywhere. "Who deployed this?" makes people hide information. Ask "what changed at 11:02?" instead. Blameless Postmortems takes this further.
  • No side quests. If you want to investigate something, tell the tech lead first: "I'm going to check whether the card network changed anything." Otherwise you duplicate work, or touch something in the middle of a rollback.
  • Lurk quietly. If you joined to watch, do not ask questions in the main channel. Read the pinned summary.
  • Hand over when tired. Long incidents need shifts. After a few hours, judgement drops. The IC rotates people out, and that includes the IC.
  • Close cleanly. When resolved, the IC says so, sets the final severity, thanks people, and schedules the postmortem.

Scenario: the first fifteen minutes

Here is the payments outage, done well. Put the steps in order before you open the walk-through.

Put it in order6 steps

Card payment errors in Europe page you at 11:09. Put the first fifteen minutes in order.

  1. Tap the steps below in the right order.
Need a nudge? A hint shows where it starts.
The walk-through, minute by minute

11:09. The burn-rate alert pages Sam, the payments primary. Sam acknowledges and posts "looking" in the alerts channel.

11:12. The dashboard shows about 30% of EU card payments failing since 11:02. US is fine. This is a core journey for many users: SEV1 by the company table.

11:14. Sam declares through the incident bot. The bot opens #inc-2291-payments-eu and pages the incident commander on call, Priya. Priya joins: "I'm IC. Sam, you're tech lead. Jo, can you take comms?" Jo agrees. Priya pins a summary.

11:17. Sam checks recent changes. Release 7.3.0 hit 100% of EU payment pods at 11:02. Nothing else changed. Two other engineers join. Priya asks one to check the card network's status page and the other to stay ready to help with the rollback.

11:19. Jo posts the first status page update: card payments failing for some European customers, investigating, next update by 11:45. Jo tells support to suggest retrying or using another payment method.

11:21. Sam: "Proposing rollback of payments-api to 7.2.4, EU only. Migration in 7.3.0 was additive, so the old code is safe." Priya: "Approved. Go."

11:23. Rollback starts. The scribe (Jo, doubling up) records it.

11:31. Error rate is back to baseline. Priya changes the status to mitigated and asks everyone to watch for 30 minutes before standing down. Jo updates the status page.

What did not happen: nobody debugged the rounding bug while customers were failing, nobody rolled back a second service, and nobody asked "who shipped this?"

Once resolved, the work moves to the postmortem, covered next in Blameless Postmortems.

Key terms
incident
An unplanned disruption or degradation of a service, or a threat of one, that needs coordinated response.
severity
A level such as SEV1 to SEV4 that says how bad an incident is and how big the response should be.
incident commander
The person who owns the incident, makes decisions and assigns work, and does not debug.
Incident Command System
The emergency-response structure from firefighting that incident roles in software are based on.
mitigated
Users are no longer affected, even if the underlying cause is not yet fixed.
status page
A public page that tells customers what is affected, what to do, and when the next update will come.
time to mitigate
The time from the start of user impact to the point where users are fine again.