Skip to main content

Incident response cheatsheet

A one-page reference for incident response and Linux SRE debugging. For the full mindset, roadmap, and interview scenarios, see the complete guide.

๐Ÿ“– Full guide: Incident Response โ†’

Severity & rolesโ€‹

ConceptOne-liner
SEV1/2/3/4full outage โ†’ major degradation โ†’ minor/limited โ†’ cosmetic
ICowns decisions
Comms Leadowns messaging
Scribeowns the timeline
SMEsfix โ€” never overlap these roles under pressure

Incident lifecycleโ€‹

Detect โ†’ Triage/Declare โ†’ Mitigate โ†’ Resolve โ†’ Postmortem

Comms cadence: SEV1 every 15-30min, SEV2 every 30-60min, SEV3 at milestones only.

On-call & pagingโ€‹

  • Primary paged first, Secondary is the safety net.
  • Escalation policy defines the timeout chain (who/when).
  • Alert routing = which service; dedup collapses noise into one incident.

Stabilize first (0-5 min)โ€‹

  1. Ack the page โ€” stop the noise.
  2. Confirm real user impact (not just an alert).
  3. Declare severity โ€” don't investigate silently.
  4. Say out loud what you're checking next.

Process commandsโ€‹

ps aux --sort=-%cpu | head
top # P=sort CPU, M=sort mem, k=kill
pstree -p
kill -15 PID # graceful
kill -9 PID # force
pgrep -fl java
nice -n 10 myscript.sh
renice 5 -p 1234

/proc โ€” real gold for SREsโ€‹

cat /proc/<pid>/status    # mem, state, threads
cat /proc/<pid>/limits # ulimits in effect
ls -la /proc/<pid>/fd # open file descriptors
cat /proc/loadavg
cat /proc/meminfo

Filesystem & diskโ€‹

df -h                 # disk usage
du -sh */ | sort -h # biggest dirs
lsof +D /path # who has files open here
lsof | grep deleted # deleted-but-held disk space

Inodes exhausted โ‰  disk full โ€” check df -i separately.

Follow the request pathโ€‹

  1. Client โ†’ LB โ†’ is the LB healthy / routing correctly?
  2. LB โ†’ app โ†’ is the process alive and accepting connections?
  3. App โ†’ DB/cache โ†’ is the dependency the actual bottleneck?
  4. Check logs at each hop, not just the top of the stack.

Postmortemโ€‹

  • Blameless. Timestamped timeline. 5-whys root cause.
  • Contributing factors listed separately from root cause.
  • Action items have owners and dates โ€” no names attached to blame.

Runbooksโ€‹

Write for a stressed reader at 3am: numbered steps, exact commands, explicit decision points โ€” not prose. If a step has a judgment call, say what to check to make it.

See: 90-Day Linux SRE Roadmap for a full ramp-up plan