Incident response — study guide

The concept's fragments, read in order.

For your capstone Take your own app to production

Your app will break while people are using it, and incident response decides how long that lasts: declare it, triage against the deploy history, mitigate before diagnosing, keep users told, and write it down afterwards. Later an AI assistant gathers context for these pages, but the decisions in them stay yours.

Say the burn-rate page fires at 21:12 with 15 percent of requests failing. The error graph turns up at 21:04, and the deploy history shows app:2.15.0 went out at 21:02. That is your first suspect, and suspicion is enough: you declare a SEV1 in one channel, note the version, save a few log lines and the error graph, then redeploy app:2.14.3. Errors are back under target by 21:18. The timestamped notes you kept become the timeline of the blameless review you write the next day.

From the page to the write-up

one incident, from the page to the write-up users affected until service is restored detect declare and triage mitigate find and fix the cause write the review time it breaks alert fires service restored resolved review done action items change the system, so the next incident starts from a better place impact ends at the restore, not at the fix: the cause can wait, the users cannot
One incident in order along a time axis: it breaks, the alert fires and the incident is declared, triage, mitigation, service restored, the cause is found and fixed, and the review is written; users are affected only until service is restored, and the review's action items feed back into the system.

An incident is any unplanned break or slowdown in your app that needs someone to act on it now. Requests are failing, pages are crawling, or data looks wrong, and real people are noticing. Incident response is what you do from the moment the alert reaches you to the moment the written account of it is done.

The goal while it is happening is narrow: get users back to working service. Explaining why it broke matters, but it comes second. Google's site reliability guidance puts it plainly, that the aim is to first stop the impact of an incident and then find the root cause, because the people using your app do not care whether you understand the outage. They want the errors to stop.

The work has a shape. You decide that this is an incident and how bad it is, you work out who is doing what, you triage to find out who is hurt and what changed, you mitigate to stop the damage, you keep people told, and once things are calm you write down what happened so the next one goes better. Designing the alerts belongs to service levels and alerting, and the mechanics of undoing a release belong to release strategies; this concept is the part with people in it.

Calling it an incident

The first decision is to say out loud that this is an incident. Declaring one is what turns a person quietly poking at a dashboard into a coordinated response: there is now one place where the work happens, a record of what is being tried, and the right people know. Waiting for certainty before declaring tends to leave one person troubleshooting alone while the damage spreads.

Declaring is also cheap to undo. If the spike turns out to be harmless, you downgrade it or close it and lose a few minutes. Incident guides lean toward declaring on reasonable suspicion for exactly that reason: a brief false alarm costs far less than a late start on an outage that keeps getting worse.

Most teams attach a severity level, often written SEV1, SEV2, SEV3, with SEV1 the worst. Severity describes impact and urgency, not how hard the bug is: how many users are affected, whether a core feature is down, whether data is at risk, whether there is a workaround. The exact thresholds differ between organizations, so the useful version is the one you agree in advance and can apply in seconds. For your app that might be two levels: everyone is broken and someone should be woken, or something is degraded and it can wait for the morning. A severity scale earns its place only when each level changes what you do.

Open one place to work in as soon as you declare, a chat channel or a single shared document. Everything said and tried goes there, with times, so that anyone who joins can catch up by reading rather than by interrupting.

Hats, not headcount

the same four jobs, whatever the size of the team larger team: one person per job team of one: one person, switching jobs command coordinates, does not fix hands-on fix communications scribe held by A B C D command stop, take stock, decide hands-on fix communications scribe you held by, in turn the jobs stay the same; only the number of people holding them changes
The same four incident jobs, command, hands-on fix, communications and scribe, drawn for two team sizes: on a larger team each job is held by a different person, on a team of one every job is held by the same person, who switches between them; on the larger team, command coordinates the others rather than fixing.

The standard incident roles come from emergency services. The Incident Command System grew out of the disastrous 1970 California wildfire season, when crews from many agencies found that their failures came from communication and coordination more than from a lack of resources, and it was built up through the 1970s by a group of fire agencies called FIRESCOPE. Software teams, Google's and PagerDuty's among them, borrowed its central idea: someone has to own the whole response like the officer in charge at a fire scene, who directs every crew and deliberately does not pick up a hose, so that someone keeps the whole picture.

That someone is the incident commander. They set priorities, hand out the work, make or broker the big decisions and keep track of what is happening, and they deliberately do not dig into the fix. Hands-on debugging narrows attention to one thread, and an incident needs someone watching all of them. The hands-on work belongs to the operations lead, the person or people actually diagnosing and changing the system. A communications lead keeps users and anyone who depends on you informed, and a scribe records events, decisions and their times as they happen.

These are jobs, not headcount. On a larger team each one goes to a different person, which keeps any one of them from drowning. On a team of one or two, the same person wears several hats, and the guidance from those same sources says that is fine for a small incident. What carries over is knowing which hat you have on. Every so often the person fixing your app should stop, take the commander's view for a minute, and ask whether the current thread is still the most useful one, whether anyone needs an update, and whether the notes are being kept.

With two of you, the natural split is one person on the fix and the other on everything else: decisions, updates and the timeline. That alone buys most of what the full set of roles is for.

How bad, since when, what changed

line the symptom up against the changes on the same clock error rate errors jump onset changes time deploy config change deploy first suspect: the last change before the onset older changes: errors stayed flat after them a suspect, not a verdict: reverting it is a cheap test of the guess
An error-rate line that is flat and low until one moment, when it jumps; beneath the same time axis a row of changes, and the change made immediately before the jump is the first suspect.

Triage decides how urgent the problem is and where to look first, before anyone knows the cause like triage in an emergency room, which sorts patients by how badly and how urgently they need help before anyone works out the diagnosis. It runs on three questions, asked in order: who is affected and how badly, when did it start, and what changed just before it started.

The first question is about users, not servers. Is every request to your app failing, or only one endpoint? Are all users affected, or the ones in one region or on one version of the client? Error rate, latency against your target (a p95 of 300 ms, say) and request volume answer this in seconds if your dashboards already show them, which is what observability was for. Scope sets the severity, and severity sets how hard you push.

The second and third questions work together. Find the moment the symptom began on the graph, then put the list of changes on the same clock: deploys from the pipeline, configuration changes, a migration, a jump in traffic, a dependency having its own bad day. The change made shortly before the onset is the first suspect. It is a suspect, not a verdict, but suspicion is enough to act on when undoing that change is cheap and fast.

That is why a deploy history matters as much as any metric. If your pipeline records what went out and when, triage turns into reading two timelines side by side instead of guessing.

Stop the bleeding, then investigate

user impact is the area under the curve until service is restored diagnose first, then fix it breaks still broken while you work out why fix ships mitigate first, then diagnose time it breaks roll back diagnose while users are already fine fix ships same cause, same fix, same finish: only the shaded area changed
The same incident handled two ways: diagnosing first keeps errors high until the fix ships, while mitigating first drops errors at the rollback and diagnoses afterwards, so the shaded area of user impact is far smaller when you mitigate first.

User impact keeps adding up for as long as the service is broken, and it stops adding up the moment service is restored, whether or not anyone understands why it broke. So the first job is to restore service, and finding the cause comes after like a first-aider pressing on a bleeding wound before anyone asks how it happened: stop the damage now, explain it once the patient is stable. Google's reliability engineers write that responders must put mitigation ahead of everything else, and that mitigating does not require understanding the details, only knowing roughly where the problem is.

The tools for this are generic mitigations: actions that ease the pain for a wide range of failures without a diagnosis. The basic ones are rolling back a recent release, moving traffic away from an unhealthy server or region, and adding capacity. Switching off a feature behind a flag and shedding non-essential load belong on the same list. They are blunt. They may undo good changes along with the bad one, or degrade something else for a while, but they are quick, and quick is what an incident is short of.

The arithmetic for your app makes the point. At a peak of about 50 requests a second, every minute of a full outage is 50 × 60 = 3,000 failed requests. Your app serves about 10 million requests a month, so an availability target of 99.9% measured over 30 days allows 10,000 failed requests in the whole window, and each peak minute of full outage spends 30% of it. Even rolling back within five minutes at peak fails 15,000 requests, one and a half months' budget. Spending an hour reading code first, with everything down, fails 180,000, eighteen months' budget. Roll back, then read the code with users already fine.

Two habits keep mitigating first from destroying the evidence you need afterwards. Before you roll back or restart, note what you are about to change and grab what is cheap to grab, a few log lines and the error graph. And set up your mitigations before you need them: a rollback you have never run is a hope, not a tool.

Undo the change, or restore the data

When code or configuration is the suspect, rolling back is usually the fastest way back to working service. A binary rollback is often called the most common generic mitigation, and if your pipeline can redeploy the last good container image in a few minutes, that is your first move whenever the trouble lines up with a release. How to make rollbacks cheap and safe, including the database changes that stop the old version working, is the business of release strategies. During the incident, the question is simply whether the old version can run against the data as it is now.

Rolling back code leaves damaged data where it is, as release strategies explains. When the damage is garbage written into your database, or rows deleted by a migration or a mistaken command, the answer is a restore from backup, which is slower, loses whatever changed after the recovery point, and can make things worse if it is done in a hurry. Often you need both: roll back the code to stop new damage, then repair the data.

The precautions that keep a restore from becoming a second incident are few and worth knowing by heart. Stop the source of damage first, the faulty job or deploy, and pause writes if they would spread it. Take a copy of the damaged database as it is before you touch it. Choose a recovery point from just before the damage began, which is where a point-in-time backup earns its keep. Restore into a separate copy, check it, and only then swap it in or copy back the rows you lost. The restore itself, and the recovery point and recovery time objectives you set for it, belong to backup strategy; the incident is the day you find out whether that work was done.

Whatever you lose between the recovery point and the incident is a decision that users may need to hear about. Say so plainly rather than hoping nobody notices.

Telling people while it is happening

While your app is broken, the people who use it are guessing. An update replaces their guesses with facts, and silence lets the guesses get worse. So say something early: acknowledge that there is a problem as soon as you have declared one, without waiting to know the cause.

A useful update is short and plain. It says what is affected and what users will notice, roughly when it started, what you are doing about it, any workaround, and when the next update will come. It does not guess at the cause, promise a fix time you cannot back, or bury the problem in jargon. If you do not know something yet, say so, and give the time of the next update. Early suspicions are often wrong, and a confident wrong explanation costs more trust than an honest gap.

For a serious outage, both Atlassian's status-page guidance and PagerDuty's stakeholder guide suggest updating every 30 minutes as a default, sooner when something changes, and adjusting to the situation. Guides disagree for smaller incidents, from hourly to a few times a day. What matters most is keeping the promise you made: if you said the next update is in 30 minutes, post one in 30 minutes, even if it only says the work continues.

Keep a second, internal stream as well: a timestamped log of what was seen, tried and decided, written as it happens. Memory under stress is poor, and that log is what the written review will be built from.

Write down what happened, without blame

Once service is restored and the cause is fixed, write down what happened. The post-incident review, often called a postmortem, is a short document with a predictable shape: a summary, the impact (who was affected and for how long), a timeline from the first relevant event through detection, mitigation and recovery, what triggered it and what made it worse, what helped, and a few action items, each with an owner.

The review is blameless. It assumes that everyone involved acted reasonably on what they knew at the time, and it asks how the system let a reasonable action cause harm like an air-accident investigation, which asks how the system let a trained crew make a reasonable-seeming mistake so that the system can be fixed, rather than whom to punish. That is not politeness. Blame teaches people to hide mistakes, and a review that cannot hear the truth produces fixes for a story that did not happen. It also guards against hindsight, which makes the warning signs look obvious once you know the ending.

Practitioners also warn against settling on a single root cause. Real incidents usually need several things to go wrong together: a change with a bug, a test that did not cover it, an alert that fired late, a rollback that took longer than it should have. A straight chain of five whys tends to pick one of these and stop. Listing the contributing factors instead gives each one a chance to become an action item.

Scale the ceremony to the team. For a solo developer the review can be one page written the next day, kept with the others in the repository. Its value comes from two things only: it was written while memory was fresh, and its action items actually get done.

Your app's first bad night

Take your app to production and, sooner or later, it will break while people are using it. A deploy goes out, the error rate climbs, and the alert finds you. How long that night lasts is mostly decided before it starts.

The preparation is small and specific. Know how to roll back, and have done it once on purpose, so that undoing a release takes minutes. Have a restore you have actually tested, so damaged data is a slow afternoon rather than a lost business. Have a place to post status that does not run on the same server as your app. And keep a short note of the first five minutes: how to check whether the app is healthy, how to roll back, how to reach your hosting provider, how to post an update. A page you can follow half asleep beats a long manual nobody reads.

None of this needs a large team. Google's own incident guidance says the process should scale with the organization and that a small incident may need only one responder. A team of one keeps the same habits in miniature: mitigate before diagnosing, keep a timestamped note, tell users what is going on, and write a short blameless review afterwards. The separate rosters, severity ladders and tooling can wait until there are enough people to need them.

The habit worth keeping most of all is the review. Measuring average time to recover across incidents tells you little, because incident durations vary wildly; the 2022 VOID report, repeating a 2021 simulation on incident-duration data from 12 companies, found that cutting every incident's duration by 10% did not reliably lower the average. What does improve your app is the list of things each incident taught you, done one action item at a time.

Next on your path to Take your own app to production: