Probably Overthinking It

On Checking Servers at 2 A.M.

There is a particular pleasure in checking your servers at two in the morning. Everything is graphed, everything is alive, and you are the person who knows. It feels like responsibility. Mostly it is a slot machine.

The tell is what you are actually looking for. Not a problem: a problem would arrive on its own. What you are looking for is the feeling of watching, and that feeling will consume as much attention as you feed it. My first months of self-hosting, “quick check” was a ritual without a schedule, and the ritual’s product was not uptime, it was anxiety with a scrollbar.

The fix was never to care less. It was to make quiet verifiable, so that checking became unnecessary. Concretely:

Write down what healthy means. For me that is a short list: a handful of services report active, a couple of timers show recent clean runs, and a security log shows the steady drip I have already decided is normal. Anything outside the list is news. Everything inside it is not.

Make the news come to me. If a service dies, a watchdog restarts it and tells me. If an attack accelerates beyond a threshold I set in advance, I get one message with the details. If nothing crosses a threshold, nothing sends. The design goal sounds trivial and took surprisingly long to satisfy: silence that means something. Once quiet is a defined, tested state, checking at two in the morning adds exactly zero information.

Trust the ritual you rehearsed, not the one you imagine. The most uncomfortable lesson in operations is that your behavior during a real incident is whatever you practiced during calm ones. So I rehearse: deliberately trigger the watchdog in a controlled window and watch it catch the failure, run a restore from backup into a scratch directory, break a thing on purpose and time my own response. The first rehearsal of anything is your worst performance. Choose to have first performances when the stakes are low.

And then the human part. A system that pages you at two in the morning should be rare enough that the page means something. Mine are, now. The dashboards still glow, the graphs are still beautiful, and I still open them sometimes, for the same reason people open a well-organized toolbox. But the difference between the first months and now is the difference between being watched and being on watch. One of those is a job. The other is a hobby pretending to be one.

#reflection#operations#monitoring#self-hosting