Incident response
Handling outages and serious problems calmly and quickly.
Incident response covers detection, roles, communication, mitigation and follow-up. Mitigate first, investigate later. Blameless postmortems turn incidents into lasting improvements.
Why it matters for a product engineer
Every product fails sometimes. What users remember is how long it lasted and how they were told. Incident response is the plan for those hours: who leads, who fixes, who talks to users. Product engineers are often the people closest to the failing code, so they need to know the plan before they need it.
How to do it
- Decide in advance how an incident is declared, and that anyone may declare one.
- Give clear roles: one person leads and decides, others fix, one person communicates.
- Restore service first. Roll back, turn off a flag or move traffic, then look for the cause.
- Keep a running log with times, actions and decisions, where everyone can read it.
- Tell users early and regularly, even when you do not know the cause yet.
- Write a blameless postmortem: what happened, why the system allowed it, and the actions that will stop it from happening again.
Common mistakes
- Everyone fixing at once, with nobody in charge.
- Looking for the root cause while users are still down.
- Silence towards users until the fix is ready.
- Postmortems that blame a person, so the next mistake is hidden.
- Backups and recovery steps that nobody has tested.
Example
In January 2017 an engineer at GitLab, working on a database problem, deleted data on the primary database instead of the secondary. None of the backups worked. A snapshot taken six hours earlier saved most of the data. GitLab worked in the open, with a public document and a live stream, and published a blameless postmortem.
GitLab's database outage, 31 January to 1 February 2017
- 31 Jan, 17:20 UTCA snapshot, by chanceDecisionTaken for other work. It became the copy that saved the data.
- 31 Jan, about 23:30The wrong database is wipedProblemAbout 300 GB removed from the primary. The daily backups had been failing for some time, unnoticed.
- During recoveryRecovery in publicDecisionA public document, a YouTube stream with about 5,000 viewers, and Twitter updates.
- 1 Feb, 18:00 UTCService restoredResultFrom the 17:20 snapshot. About 5,000 projects, 5,000 comments and 700 new accounts lost changes.
The engineer's mistake took seconds. The real cause was recovery steps nobody had tested.
ReportedGitLab's postmortem, 10 Feb 2017
Sources: Postmortem of database outage of January 31 (GitLab) ↗ · Managing incidents (Site Reliability Engineering, chapter 14) ↗
AI leverage
Use AI in your workUse AI to support this skill. Your judgment and verification remain part of the work.
- Workflow
- Summarize redacted logs and recent changes into a timeline and propose diagnostic checks.
- Limitations
- A plausible diagnosis can distract responders; automated remediation may worsen an incident.
- Verification
- Verify each timeline event against telemetry and require an accountable decision before consequential actions.
Technical leverage
Trace the failure, implement a reversible mitigation and measure recovery from the user’s perspective.
Evidence of mastery
Put it into practice- Practice
- Run an incident exercise from detection through recovery.
- Artifact
- A verified timeline, recovery evidence and follow-up actions that address contributing causes.
What good looks like
- Mitigation has a rollback or safe stopping point.
- Recovery is confirmed by user-facing indicators.
Use this evidence to assess your work. Your map status is a self-assessment, not a certification.
Resources
4- bookStart here
Managing incidents (Site Reliability Engineering, chapter 14) ↗
Google SRE · 11 minClear roles and one person in charge, the simple structure that keeps an outage from turning into chaos.
- docsStart here
Incident response guide ↗
PagerDuty · free guidePagerDuty's own open incident process, from preparing on-call to running the response and the review.
- bookStart here
Postmortem culture: learning from failure (Site Reliability Engineering, chapter 15) ↗
Google SRE · 10 minBlameless postmortems: writing up what happened so the system improves, not so someone gets blamed.
- docsGo deeper
Different roles in incident response ↗
PagerDuty · 8 minWhat the incident commander, scribe and liaisons each do, so a small team knows who handles what.
Tools
1- ToolOpen source