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โ
| Concept | One-liner |
|---|---|
| SEV1/2/3/4 | full outage โ major degradation โ minor/limited โ cosmetic |
| IC | owns decisions |
| Comms Lead | owns messaging |
| Scribe | owns the timeline |
| SMEs | fix โ 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)โ
- Ack the page โ stop the noise.
- Confirm real user impact (not just an alert).
- Declare severity โ don't investigate silently.
- 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โ
- Client โ LB โ is the LB healthy / routing correctly?
- LB โ app โ is the process alive and accepting connections?
- App โ DB/cache โ is the dependency the actual bottleneck?
- 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