Site Reliability Engineering

Layers of Management ThoughtLayer 8: Methodologies and Operating SystemsMethodologyAlso known as SRE, Google SRE

Developed at Google by Ben Treynor Sloss, who in 2003 began running the production team that grew into its site reliability engineering organization, and who wrote the introduction to Site Reliability Engineering: How Google Runs Production Systems (O'Reilly, 2016), edited by Betsy Beyer, Chris Jones, Jennifer Petoff, and Niall Richard Murphy.

A discipline that treats operations as a software problem, staffing it with engineers who automate the work and manage reliability against an agreed target, with an error budget settling the tension between shipping and stability.

One quarter's error budget for a checkout service, and what the team does when downtime eats it

A checkout service picks an availability target, and the target fixes how many minutes of downtime the quarter can absorb. Set the target and the downtime so far, then read how much of the budget is gone and what the team's own policy says about releases. The bars are each target's budget, and the line is the downtime to date. Illustrative.

99.9%
100
Budget for the quarter, in minutes
130
Share of the budget spent
77%
Release policy
Ship at the usual paceSlow down: small changes and reliability fixes onlyBudget spent: freeze feature releases until the next quarter

Budget at each targetDowntime so far

0100200300130651399.9%99.95%99.99%0100200300130651399.9%99.95%99.99%

What this target allows99.9%: About two hours a quarter. A common choice for a consumer service, with room for a few small incidents.99.95%: About an hour a quarter. One bad release can use most of it.99.99%: About 13 minutes a quarter. A single long incident ends the quarter's releases, and the engineering to defend it is expensive.

An example

An online retailer's checkout service went down for a few minutes most weeks, and every outage began the same argument. The product group wanted releases to continue and the operations group wanted them paused. Executives sided with whoever had spoken last. Operations staff spent most of their days on tickets and manual restarts, and the team could not hire fast enough to keep up.

The retailer asked its engineers and the product owner to agree on one number: the service would be available 99.9 percent of the time, which allowed about two hours of downtime a quarter. That became the error budget. While downtime ran below it, the product group could release as often as it liked, and once most of it was spent, only small changes and reliability fixes shipped. The argument disappeared, because the number decided. The operations team also capped manual work and used the freed hours to automate the restarts that had filled its days.

The core idea

Site reliability engineering holds that running a service is an engineering problem. In its founder's words, SRE is "what happens when you ask a software engineer to design an operations team." The people who run production write software to automate the work, and manual operational work, such as tickets and on-call, is capped at half of an engineer's time. The excess goes back to the product developers.

The central device is the error budget. A team and its business set an availability target, and the budget is the margin below perfection: a service that is 99.99 percent available has a budget of 0.01 percent. The budget may be spent on anything, including risky releases, as long as it is not overspent. It turns an argument between speed and stability into arithmetic that both sides accept. The framework also argues that 100 percent is the wrong target for almost everything, because users cannot tell the difference and the effort is better spent on features.

The thinking behind it

Ben Treynor Sloss Ben Treynor Sloss joined Google in 2003 to run a production team of seven engineers, the group that grew into its site reliability engineering organization, and Google's own book on the subject names him as the originator of the term. He wrote that book's introduction, which sets out the ideas above: operations staffed by software engineers, a ceiling on manual work, and an error budget that settles the conflict between feature speed and stability. The book, edited by Betsy Beyer, Chris Jones, Jennifer Petoff, and Niall Richard Murphy and published by O'Reilly in 2016, collects essays by members and alumni of that organization. His premise is that reliability is the most basic feature of a product.

Where it sits in the layers

Site reliability engineering belongs in Layer 8, Methodologies and Operating Systems, as a prescribed way to organize and run operations. It takes for granted the feedback logic of cybernetics in Layer 1, a target, a measurement, and a correction, and it shares with DevOps, beside it in this layer, the culture of shared responsibility for production. It is put to work through routines in Layer 10, such as on-call rotations and the blameless postmortem, and measured by indicators such as those in the DORA metrics. The common mistake is asking it to choose the product's reliability target. The framework says that target is a business decision, and SRE supplies the means of meeting it.

How organizations put it to work

A dedicated SRE team or an embedded reliability role owns the practice, with a product owner who agrees the target. It changes structure by creating a team of engineers responsible for production, with the right to push excess operational work back to the developers who caused it. It changes decisions: the service has an availability target, and the error budget decides how fast to release. It changes routines with on-call rotations, incident reviews, and projects to automate manual work.

The measures are the availability target and its actual result, the share of the budget spent, and the time engineers spend on manual work against the cap.

Sustaining it takes executive backing for the budget, since the policy is tested the first time a major release must be held. In the first year, expect arguments over what the target should be, early quarters in which the budget is overspent, and a gradual shift of engineers from firefighting to automation. The business gets fewer repeat outages, smaller incidents, and operations that no longer depend on a few people who remember how to restart things.

Where it goes wrong

Failure often starts with a budget no one honors. The team sets a target, overspends it, and ships anyway. The sign is a dashboard that shows red for months without a change in release behavior.

It also comes from a mislabeled operations team. A company renames its operations staff as SRE, leaves the tickets and manual work in place, and gains the title and nothing else. The sign is that no one is automating anything, and the cap on manual work is not tracked.

And there is a target set by habit that users never asked for. Teams that chase very high availability pay heavily for improvements users cannot perceive, while services that matter more get too little. The framework itself calls 100 percent the wrong target for nearly everything. The sign is engineering spent on a number nobody can connect to a customer complaint.

Related and rival frameworks

  • DevOps. The wider culture of shared responsibility between development and operations. Read it when the problem is the divide between teams.
  • DORA Metrics. Measures how fast and how stably software is delivered. A good companion when the question is delivery performance and the question is not one service's availability.
  • Platform Engineering. Builds internal products that make the paved road easy for every team. Choose it when the goal is to reduce the work every team repeats.

Go to the source

Back to the catalog