Quick reference
- Has a person run it by hand twice, with the same result?
- What does it change, and can you see that before it does?
- Who may run it, and who may stop it halfway through?
- What does the system look like when step four of seven fails?
- How do you prove it worked without reading the logs?
Explained
Before you automate a runbook, ask whether a person has run it by hand twice, with the same result. If not, you are automating a draft.
Ask what it changes, and whether you can see that before it does. A dry run that prints the target list and the diff is worth more than a fast script.
Ask who may run it and who may stop it halfway. Automation needs an owner and an abort, not just a schedule.
Ask what the system looks like when step four of seven fails. If nobody can describe the half-finished state, the resume will be improvised during an incident.
Ask how you prove it worked without reading the logs. A check that fails loudly beats a log nobody reads.
The honest caveat: some runbooks should stay manual, particularly the ones that run twice a year and change every time, because the automation cost exceeds the risk it removes.
Your turn: Which of your runbooks would fail the first question?
Related on this site
More notes: Platform operations
- P1141Platform operations commands
- P1139Runbook automation without surprises
- P1138The change pipeline: propose, review, pilot, roll out
- P1137Four numbers that describe your change
- P1136Certificate rotation across a platform
- P1135Draining a node without dropping requests
- P1134Five signs a freeze is hiding risk
- P1133A maintenance window people trust
Open in the notes app: search, filters, copy This note on GitHub