Cobalt Field Notes
Operations notes, written down once.
Short write-ups on systems topics that keep coming up in code review and on call. They are meant to be read in five minutes and kept open in a tab while you work.
Recent notes
-
Rewriting a pushed branch safely
--force-with-lease, the reflog, and the habits that make history rewrites boring.
-
Backups are a restore problem
A backup that has never been restored is a hope. Notes on making restores routine for a small service.
-
Store UTC, convert at the edges
A handful of rules that keep time zone bugs out of backend code, and the daylight saving cases that still need care.
-
Ordering is not dependency in systemd
After= without Wants= does nothing on its own. How the two kinds of directives differ, and how to read what a unit really pulls in.
-
SQLite in WAL mode
What write-ahead logging changes for readers and writers, and the two settings that matter for a small server.
-
Rotating logs without losing lines
copytruncate versus create, why a process keeps writing into a deleted file, and where journald fits in.