Bookmarks

Runbook

A step-by-step guide for the on-call engineer: what to check and what to do for a specific alert, outage or planned operation.

Also: run book

checked 18 Nov

All terms

When an alert fires at two in the morning, there is no time to start from scratch. A runbook describes the symptoms, diagnostics and actions in advance: the on-call engineer works through the steps and clears a routine issue in minutes without waking the developers. The Google SRE Workbook calls such instructions playbooks: each alert gets an entry with severity, impact, debugging hints and possible actions.

What goes inside

PartWhat it describes
Symptomswhich alert fired, what the graphs and logs show, how severe it is for users
Diagnosticswhich commands and dashboards to check, how to tell this failure from similar ones
Actionsconcrete steps with commands: roll back a release, raise a limit, fail over to the backup
Escalationwho to contact if the steps do not help, and what to attach to the ticket
Afterwardshow to confirm the service is restored, what to record for the incident review

Besides alert response, runbooks also cover planned operations: starting and stopping a service, replacing a certificate, checking backups.

Text runbooks live in version control next to the service code: when checks or configuration change, the guide is updated too. A link to the relevant runbook goes straight into the alert text. The guide has to work without knowledge of the service: the on-call engineer follows the steps and gets a result. If that does not help, escalation takes over: a path to the people who know the system in more depth.

Runbook and playbook

The two words are often confused. A playbook is a way to structure procedures: NIST SP 800-61r3 describes playbooks as “actionable steps” for people across various scenarios and situations. In operations practice a runbook is usually narrower and more specific: one scenario for one alert or operation. The boundary is loose: Google calls a playbook what is called a runbook here.

From instructions to automation

Once the steps are formalised, they can be handed to automation. This is how runbooks work in AWS Systems Manager: the scenario is written in YAML or JSON, steps run strictly in order, the output of one step becomes the input of the next, and a step can embed a Python or PowerShell script. Ready-made runbooks cover routine operations — restarting a virtual machine, taking an image of it.

textSkeleton of a runbook for a high error rate alert
# runbook: checkout, HighErrorRate alert1. checkout/latency dashboard: is p99 rising after the latest deploy?2. Yes — `kubectl rollout undo deployment/checkout`, the rollback takes up to 5 minutes.3. No — check the number of database connections; at the limit, raise the pool size.4. Still failing — escalate: #checkout-oncall channel, attach the graphs and the start time.

Sources

the term is written from these pages

Verified 18 Nov