Pidoku

Archive

This learning material is in the archive. It is not currently maintained and has not been updated with the latest information, so tool versions, prices and dates may be out of date.

Running an Incident

Module 5 Lesson 5.b 50 min Difficulty 3/5

Prerequisites 5.a

The idea in one minute#

A well-run incident has a rhythm: detect → declare → assemble → mitigate → monitor → resolve → review. The incident commander keeps the rhythm with short, regular status checks and makes the decisions; the operations lead works the problem; the communications lead tells everyone else what is happening on a fixed schedule, even when there is nothing new.

Communication is half of incident response. Customers and colleagues forgive outages; they do not forgive silence, or updates that turn out to be wrong.

An analogy#

An air-traffic controller during an emergency landing: short, standard phrases, read-backs to confirm, one voice giving instructions, and other aircraft told to hold rather than left wondering.

A picture#

flowchart LR
  D[":i-radar: Detect"] --> DE[":i-siren: Declare<br/><small>severity, channel, doc</small>"]
  DE --> AS[":i-users: Assemble<br/><small>IC, ops, comms</small>"]
  AS --> MI[":i-wrench: Mitigate<br/><small>stop the pain</small>"]
  MI --> MO[":i-activity: Monitor<br/><small>is it holding?</small>"]
  MO -->|"relapse"| MI
  MO --> RE[":i-check: Resolve"]
  RE --> RV[":i-file-text: Review<br/><small>postmortem</small>"]
  AS -.->|"every 30 min"| UP[":i-message-square: Status updates"]
  MI -.-> UP
  MO -.-> UP
  class D,DE warn
  class AS queue
  class MI compute
  class MO memory
  class RE,RV io
  class UP neutral

How it really works#

The incident commander’s loop#

Every 15–30 minutes (shorter in SEV-1), the IC runs the same loop out loud:

  1. What do we know? Current impact, what has been tried, what has changed.
  2. What are we doing? Who is working on what — no unowned tasks, no duplicated ones.
  3. What are the options? For each: expected effect, risk, time to try, reversibility.
  4. Decide. Pick one; say why; name the owner and a time to report back.
  5. Communicate. Post a summary in the channel; tell comms what can be said externally.

The most useful question an IC asks: “What would we do if we knew nothing more in 30 minutes?” It pushes towards a generic mitigation (4.c) instead of an open-ended investigation.

Mitigated, resolved, closed#

StateMeaning
MitigatedUsers are no longer hurt, possibly by a workaround (rolled back, failed over)
ResolvedThe system is in a stable, intended state; the workaround is safe to keep or removed
ClosedThe postmortem is written and its action items are tracked

Keep the incident open in “monitoring” for a while after mitigation — relapses are common, especially after failovers and cache rebuilds.

Internal communication#

  • The incident channel is for responders. Keep it on topic; side conversations go to a thread or another channel.
  • A broadcast channel (#incidents) gets one message when an incident starts, at each severity change, and at the end.
  • Executives get a short summary at a fixed cadence from the comms lead, not from whoever they happen to message.
  • Support gets the customer-facing wording before it is published, so tickets get consistent answers.

An internal update template:

[SEV-2] INC-2231 Checkout errors in eu-west — update 3 (14:45 UTC)
Impact:   ~12% of checkout attempts in Europe failing since 14:02. Other regions fine.
Status:   Cause identified: a config change to the payment router. Rolling back now.
Next:     Expect recovery by 15:00. Next update 15:15 or sooner if it changes.
IC: Priya · Ops: Sam · Comms: Lee · Doc: https://…/INC-2231

External communication (status page)#

Rules for public updates:

  1. Acknowledge fast — within 15 minutes of a customer-visible SEV-1 or SEV-2, even if you know nothing: “We are investigating reports of failed payments.”
  2. Describe impact in the customer’s words, not your architecture: “Some payments fail” — not “the payment router’s upstream pool is exhausted”.
  3. Never guess at cause or promise a time you do not control. “We expect” with a caveat is fine; a missed promise costs more trust than no promise.
  4. Update on a stated schedule, even with “no change; still working on it”.
  5. Close with a summary and, for big incidents, a public postmortem later.

The standard sequence of states (used by Atlassian Statuspage and most others): Investigating → Identified → Monitoring → Resolved.

Handoffs during long incidents#

Incidents over a few hours need shifts. At a handoff, the outgoing IC gives the incoming IC: current impact, current hypothesis and what has been ruled out, work in flight and owners, next decision point, and communication commitments (“next customer update 18:00”). Then the explicit “do you accept?” (5.a). Responders need rest; an engineer awake for 20 hours makes mistakes.

Common failure modes#

FailureFix
Everyone debugging, nobody coordinatingName an IC immediately
Two people changing production at onceAnnounce every change; ops lead approves
Rabbit-holing on root cause while users sufferIC asks “what would we do if we knew nothing more in 30 min?”
No updates because “nothing new”Fixed cadence; “no change” is an update
An executive joins and starts directingIC politely redirects to the comms lead
Incident declared resolved too earlyMonitor period; define what “resolved” looks like

A worked example#

SEV-1, 09:12 UTC Monday: the web shop returns 502 for everyone.

09:12  Probes fail in 3/3 regions. On-call (Sam) paged. Declares SEV-1. IC rotation pages Priya.
09:14  Priya: IC. Sam: ops. Lee: comms. Status page: "Investigating — site unavailable."
09:16  Sam: LB healthy; all web pods CrashLoopBackOff since 09:10. Change log: config push at 09:09
       (new TLS cipher list for the internal mesh).
09:18  Priya: options? (a) revert config (5 min, low risk), (b) debug the crash (unknown).
       Decision: (a). Sam reverts.
09:22  Pods still crashing — reverted config not picked up; pods cache it at start.
09:24  Priya: restart web deployment after revert? Risk: cold caches, slower first minutes.
       Decision: yes, restart in one region first (eu-west) to check.
09:28  eu-west healthy. Restart other regions.
09:33  All regions healthy. Status page: "Identified — fix applied, monitoring."
09:34  Lee to execs: "Site down 09:10–09:33 (23 min), config change reverted, monitoring."
10:05  No relapse. Resolved. Postmortem owner: Sam. Status page: "Resolved".

Note what made it go well: a change log that included config pushes, an IC who forced a choice between options at 09:18, and a cautious one-region-first restart at 09:24.

Code#

A small incident timeline tool: record events, then compute the key intervals and produce the status-page sequence. Real platforms do this from the channel automatically.

Go
// timeline.go — record incident events, compute key intervals, render a status-page history.
package main

import (
	"fmt"
	"time"
)

type kind int

const (
	start kind = iota // impact began (often known only afterwards)
	detected
	declared
	identified
	mitigated
	resolved
	note
)

type event struct {
	at   time.Time
	k    kind
	text string
}

func main() {
	day := time.Date(2026, 10, 19, 0, 0, 0, 0, time.UTC)
	t := func(h, m int) time.Time { return day.Add(time.Duration(h)*time.Hour + time.Duration(m)*time.Minute) }
	events := []event{
		{t(9, 10), start, "web pods start crashing after config push at 09:09"},
		{t(9, 12), detected, "probes fail in 3/3 regions"},
		{t(9, 12), declared, "SEV-1 declared by on-call"},
		{t(9, 16), note, "CrashLoopBackOff since 09:10; config push at 09:09 suspected"},
		{t(9, 18), note, "decision: revert config"},
		{t(9, 22), note, "revert not picked up; pods cache config at start"},
		{t(9, 24), note, "decision: restart eu-west first"},
		{t(9, 28), identified, "cause confirmed: TLS cipher list config"},
		{t(9, 33), mitigated, "all regions healthy"},
		{t(10, 5), resolved, "no relapse after 30 min"},
	}
	when := map[kind]time.Time{}
	for _, e := range events {
		if _, seen := when[e.k]; !seen {
			when[e.k] = e.at
		}
	}
	d := func(a, b kind) time.Duration { return when[b].Sub(when[a]) }

	fmt.Println("Key intervals")
	fmt.Printf("  time to detect   (start → detected)    %v\n", d(start, detected))
	fmt.Printf("  time to declare  (detected → declared) %v\n", d(detected, declared))
	fmt.Printf("  time to mitigate (start → mitigated)   %v   ← what users felt\n", d(start, mitigated))
	fmt.Printf("  time to resolve  (start → resolved)    %v\n", d(start, resolved))

	fmt.Println("\nStatus page history")
	page := []struct {
		k     kind
		state string
		msg   string
	}{
		{declared, "Investigating", "The website is unavailable for all customers. We are investigating."},
		{identified, "Identified", "We have identified the cause and applied a fix. Service is recovering."},
		{mitigated, "Monitoring", "The website is available again. We are monitoring."},
		{resolved, "Resolved", "This incident is resolved. The site was unavailable from 09:10 to 09:33 UTC."},
	}
	for _, p := range page {
		fmt.Printf("  %s UTC  %-13s %s\n", when[p.k].Format("15:04"), p.state, p.msg)
	}

	fmt.Println("\nTimeline (for the postmortem)")
	for _, e := range events {
		fmt.Printf("  %s  %s\n", e.at.Format("15:04"), e.text)
	}
}

Remember this#

  • Detect, declare, assemble, mitigate, monitor, resolve, review.
  • The IC runs a loop: know, doing, options, decide, communicate — and asks “what if we knew nothing more in 30 minutes?”
  • Mitigated ≠ resolved ≠ closed. Keep monitoring after mitigation.
  • Communicate on a fixed cadence, in customer words, without guessing at causes or times.
  • Long incidents need shift handoffs.

Try it#

  1. Run timeline.go. Add a relapse at 09:50 (a second start would not be counted — how would you model it?).
  2. Write the four status-page messages for an incident where one payment method fails for some customers.
  3. Take a public postmortem from a company you use and reconstruct its timeline with the event kinds above.

Check yourself#

  1. What is the difference between mitigated and resolved?
  2. Why should status updates go out on a schedule even when nothing has changed?
  3. What five things does an outgoing IC hand over?
  4. Why was restarting one region first a good decision in the worked example?

Sources#

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in