Runbooks for Beginners: Deploy and Incident Basics, With Glossary

Runbooks for Beginners: Deploy and Incident Basics, With Glossary

If you have just joined a software team, you will soon hear someone say, “check the runbook.” It sounds like jargon, and in a sense it is, but the idea underneath is refreshingly simple. A deploy runbook is a written set of steps for releasing software, and an incident runbook is a written set of steps for fixing a failure. Both exist so that the knowledge of how to do these things is not locked inside one senior engineer’s memory. Everything here is in plain language, and a short glossary at the end is worth bookmarking.

Why teams write runbooks at all

Imagine the one person who knows how to push a release falls ill on release day. If the process lives only in their head, the release waits, or somebody guesses and something breaks. If the process is written down clearly, a colleague can follow it and the day goes on. That is the entire argument. Runbooks make good work repeatable by anyone, not just by whoever happens to be around.

They are also a gift to beginners. Instead of nervously asking “what do I do now?”, you get a page that tells you, and each time you use it you learn why the steps are in that order.

The anatomy of a deploy runbook

A deploy runbook walks you from “the code is ready” to “the release is live and healthy”. Most good ones cover the same ground, in this order:

  1. Pre-checks. Confirm the build passed, the right version is selected and nobody else is mid-release.
  2. Announce. Tell the team in the agreed channel that a release is starting.
  3. Back up or mark the rollback point. Note the version you would return to if things go wrong.
  4. Release. Run the deployment step, normally one command or one button.
  5. Verify. Open key pages or run smoke tests and compare with what you expect.
  6. Watch. Keep an eye on error rates for a fixed period, say fifteen minutes.
  7. Close out. Announce completion and log what was released.

If your team already uses automated pipelines, many of these steps run by themselves. This overview of putting together a dependable build-and-release pipeline explains what is automated, and the runbook covers what a human still decides: when to start, what to check and when to stop.

The anatomy of an incident runbook

When something breaks, you want to move calmly. An incident runbook entry typically names the symptom, the likely cause, the first checks and the fix, followed by what to do if the fix does not work. It also says when to ask for help. Good entries are specific: “orders failing with timeout errors” is more useful than “site slow”.

Rollback: the page you hope to never open

A rollback is the process of returning to the previous working version. Beginners often assume this is trivial. In practice it needs its own written steps, because going backward can involve databases, caches and settings that do not simply rewind. Test the rollback page before you need it.

Mini-glossary for newcomers

  • Runbook: a short, step-by-step guide to a recurring task or a known failure.
  • Deploy (or release): putting a new version of software in front of real users.
  • Rollback: reverting to the last known good version.
  • Pipeline: an automated chain of steps, such as build, test and release.
  • On-call: the person responsible for responding to problems out of hours.
  • Smoke test: a quick check that the most important things still work after a change.
  • Escalate: to pass a problem to someone with more access or experience.
  • Staging: a safe copy of the live system used for testing.
  • Postmortem: a calm, blame-free write-up of what happened and what to change.

A tiny worked example

Here is what a real entry might look like, trimmed to the essentials, for a small web service. The names are made up; swap in your own.

  1. Open the release channel and write “Starting release of version 42”.
  2. Confirm the build for version 42 shows green in the pipeline view.
  3. Write down the current live version, 41, in the release log. This is your rollback point.
  4. Press the deploy button for production and wait for the “finished” message.
  5. Open the home page, the login page and one order page. Each should load within a few seconds.
  6. Watch the error graph for fifteen minutes. If errors rise above the usual line, go to the rollback page.
  7. Write “Release 42 complete” in the channel and add a line to the log.

Notice there is nothing clever in it. Every line is an action or a check. That plainness is what makes it usable by a person on their first week.

Which runbook should you write first?

Beginners often ask where to start. A decent rule is to rank candidates by two questions: how often does this happen, and how bad is it when the usual person is away? A weekly release that only one engineer handles scores high on both. A once-a-year certificate renewal scores low on frequency but high on consequence, so it deserves a short page too. A rarely used admin task that anyone can figure out in five minutes can wait.

If you are still unsure, ask your teammates a single question: “What do you dread being asked to do when the usual person is out?” The answers form your starting list. Many teams find that the first three entries fall out of that conversation within minutes, and that the same names come up again and again.

How to write your first runbook

You do not need special tools. A shared document will do. Follow this simple method:

  1. Choose one task you or a colleague performs regularly.
  2. Do it once while writing down every action, including the “obvious” ones.
  3. Tidy the notes into numbered steps, one action each.
  4. Add what you should see after each important step.
  5. Ask someone else to follow it exactly, and watch silently.
  6. Fix every spot where they hesitated, then date it.

As a bonus, you will learn the task much more deeply than you did by merely doing it. Writing is a form of understanding.

A mistake beginners often make

The common trap is writing for yourself. Shorthand such as “do the usual build” makes perfect sense to you today and none to your colleague next month. Imagine instead that the reader is capable but new, and a bit stressed. Spell things out, name the buttons and put the results next to the steps. Several teams run into this and similar pitfalls during adoption, as described in this article about frequent missteps when a company adopts DevOps, and documentation gaps appear on the list more often than you might expect.

Where to read more about data pipelines

Not every pipeline carries software. Some move data, and the people who look after them write runbooks too. Once the basics here feel comfortable, TheDataOps.org is a sensible next stop: a DataOps blog covering data pipelines and reliability for data teams.

Keeping your runbooks alive

The most common failure is not writing too little but letting pages go stale. Three habits help. Put a review date on every page. Whenever something goes wrong and gets fixed, update the relevant runbook the same day. And remove any page you know is wrong, rather than leaving it to mislead someone at the worst moment.

Quick recap

A runbook is just good work written down. A deploy runbook tells you how to release safely; an incident runbook tells you how to recover; a rollback page tells you how to get back. Start with one, test it on a colleague and let it grow from real experience. Give it a season and you will own a small library, and you will have become the sort of engineer that teams quietly rely on: the one who leaves things clearer than they found them.