Things I Realized After Responding to a 3 A.M. Incident
The alarm went off early Friday morning. The payment service's error rate had surged to 40%, and I was the on-call engineer.
The first 30 minutes were complete panic. I just kept staring at the dashboard, unsure what to do. After agonizing over whether to roll back or scale out, I ended up calling a senior engineer. Calling for help right away was the right move.
The cause was nothing major. A single configuration value deployed that morning was causing infinite retries under certain conditions. We rolled back and were back up in 40 minutes.
Things I wrote down during the retrospective afterward:
- If you can't decide within 5 minutes of getting the alert, call someone, no matter what.
- Look at recent deployment history before the dashboard; that's usually where it is.
- Don't drink during the week you're on call.
And the biggest realization was that process, not skill, is what saves you during an incident. It's really important to have runbooks prepared in advance.
10 answers
I really agree with checking recent deployment history before the dashboard. For us too, 80% of incidents were caused by deployments. Now, whenever an alert goes off, we open the deployment pipeline first, no exceptions.
Not drinking during your on-call week is truly the most basic rule, but people quietly ignore it. After I almost got caught once, I don't make any plans at all that week.
Rollback is the answer 90% of the time. I've seen things blow up even worse after trying to hold on with scale-out a few times.
True, procedure is a skill.
A 40-minute recovery during a 3 a.m. on-call is a win. That's a seriously mentally draining time of day—nice work.
A single config value causing infinite retries is a genuinely terrifying case. The code is perfectly fine, but the config opens the gates of hell... If your retries don't have backoff and a cap, that's the first thing you need to fix.
Is there a source?
Where do you keep your runbooks? Wiki? Notion? Our team makes them, but nobody ever looks at them lol
Well, isn't 'if you can't decide within 5 minutes, always call a human' a bit of a risky generalization? It depends on the service scale and team situation. If someone who can decide on their own unnecessarily escalates, it can create a structure where that person keeps getting called on. I'm also curious whether there's any basis for the number '5 minutes'.
I went through something similar, and since then we've made it a team rule to deploy in a state where you only need to hit a single 'rollback button.' If you can't roll it back within 5 minutes of deployment, the deployment doesn't get approved. At first there were a lot of complaints that it slowed deployments down, but after people experienced not being woken up in the middle of the night even once, everyone went quiet lol. While we're on the topic of procedures, one more thing: runbooks need to be written from the perspective of the person using them. Don't write down what I know—write it thinking of someone who's panicking at 3 a.m. reading it. That's how the next on-call survives.