Leave on-call better than you found it

August 26, 2024

Key takeaway: Each time you hold the pager, fix one on-call problem and write down two more for the next person.

Fix what hurts during your on-call week, because you’ll be back. On a six-person weekly rotation, the pager returns in six weeks, and every annoyance you shrug off is waiting for you.

The week you’re on call is the week you have both the motivation and the context. Next week you’re back on features and the fix slips.

Write it down while it’s fresh. At 3 a.m. you’ll find the log query that shows the failing requests. By 10 a.m. you’ll remember the shape of it and forget the query. Put it in the channel as you go, then turn it into a runbook before the rotation ends. Exact commands and exact thresholds, like “if depth > 10k and workers are healthy, run kubectl scale deploy/payment-worker --replicas=12.” “Investigate the queue” doesn’t help anyone. The reader is half-awake and may never have seen this failure.

The second time you do something by hand, script it. Then ask whether a human needs to run it at all. “If depth > 10k, scale up” is a rule a machine can evaluate, so make it an autoscaling policy and the page goes away.

At the end of the rotation, give every page a verdict. Real and actionable: make sure the runbook covers it. Real but it could have waited: make it a ticket. Noise: fix the threshold or delete it. You have the context now. In two weeks nobody will remember why it fired four times on Tuesday.

None of this happens unless it’s part of the job. The on-call engineer doesn’t carry sprint work. Their project for the week is on-call itself. And every rotation ends with a ten-minute handoff note: what paged, what got fixed, what’s still open.

Even if you only fix one thing and write down two more, the next person gets a lighter pager than you did.