Step 18 of 36 · Operations
Runbooks and automation
Write the procedure down, then automate it step by step. Know what automation takes away from your operators.
A runbook turns one person's knowledge into the team's. It is also the first draft of automation, because a procedure you cannot write down you cannot automate. Encourage the gradual path. Document the steps, script them one at a time, then let the script run itself.
Set a standard for runbooks: linked from the alert, tested by someone who did not write them, dated and owned. A wrong runbook at night is worse than none.
Understand the cost of automation before you celebrate it. When machines handle the routine cases, people only see the strange ones, with less practice and less context than before. Keep operators in practice with drills, make automation report what it is doing, and make sure a human can still do the task by hand.
Try this week
- Pick the five most frequent alerts and check that each has a runbook a new team member can follow without help.
- Choose one manual procedure and turn it into a script that only prints each step. Automate one step a week after that.
Signs you've got it
- A newly trained on-call engineer resolves common pages using the runbook alone.
- Automation failures are handled calmly because someone has practised the manual path.
Resources
- articleManual Work is a Bug (opens in a new tab)Thomas A. Limoncelli
- articleDo-nothing scripting: the key to gradual automation (opens in a new tab)Dan Slimmon
- bookThe Evolution of Automation at Google (Site Reliability Engineering) (opens in a new tab)Niall Murphy
- articleIronies of automation (opens in a new tab)Adrian Colyer, summarising Lisanne Bainbridge
- bookThe Checklist Manifesto (opens in a new tab)Atul Gawande