दुर्गा बेरागी Durga Beragi, homeEnter the study →

Library › Software and engineering

Site Reliability Engineering

Betsy Beyer, Chris Jones, Jennifer Petoff and Niall Richard Murphy (eds.) · 2016 · O'Reilly

Running systems at scale treated as a software problem.

About the book

This book, published in 2016 and edited by Betsy Beyer, Chris Jones, Jennifer Petoff and Niall Richard Murphy, describes how Google runs its production systems. Site reliability engineering, the term Google uses, means treating operations as a software engineering problem. The book is a collection of essays by many Google engineers. It has parts on introduction, principles, practices, management and conclusions. Topics include risk, service level objectives, eliminating toil, monitoring, release engineering, simplicity, alerting, on-call work, troubleshooting, emergency response, postmortems, load balancing, handling overload, distributed consensus and data integrity. Google later made the book free to read online and published a companion workbook in 2018.

Key ideas

  • Operations work should be done by engineers who automate it. Google caps time spent on manual operational work, which it calls toil, so engineers keep time for engineering.
  • Perfect reliability is the wrong goal. Teams set service level objectives, and the gap below one hundred percent becomes an error budget that can be spent on releasing new features.
  • Service level indicators measure what users experience, such as latency, error rate and availability. Objectives built on them guide decisions better than internal machine metrics.
  • Monitoring should page humans only for problems that need human action. Too many alerts cause fatigue and missed signals, so alerts should focus on symptoms that users would notice.
  • Postmortems after incidents should be blameless. The aim is to find the causes in systems and processes and then fix them, rather than to punish the individuals involved.
  • Simplicity is a reliability feature. Every added component, configuration option or line of code is a possible point of failure, so removing needless complexity reduces outages over time.

Why it is on this shelf

Any product that customers depend on, from delivery apps to payment flows, faces outages. This book gives a working method: measure what users feel, set honest targets, budget for failure and learn from incidents without blame. Small teams can adopt its ideas long before they reach Google scale.

How to start reading it

Read the principles part first, especially the chapters on embracing risk, service level objectives and eliminating toil. Then read the chapters on monitoring and postmortem culture. Pick other practice chapters as problems arise.

About this book

Site Reliability Engineering was published by O'Reilly in 2016. Its full subtitle presents it as an account of how Google runs production systems. It was edited by Betsy Beyer, Chris Jones, Jennifer Petoff and Niall Richard Murphy, and it was written by a large number of Google engineers, each contributing chapters about the parts of the work they knew best. It is not a single-author treatise. It is closer to a field report from inside one of the largest computing operations in the world, gathered and shaped by editors into a book.

The question the book sets out to answer is simple to state. How do you keep a very large, constantly changing software service running well, for very many users, without the cost of running it growing as fast as the service itself? Before this book, most companies answered that question with an operations team. Developers wrote software and handed it over. A separate group of system administrators deployed it, watched it, restarted it when it fell over, and absorbed the pain. The two groups wanted different things. Developers wanted to ship changes. Operators wanted nothing to change, because change is the main cause of outages.

Google's answer, which the book names site reliability engineering, or SRE, is to give the job of running production to software engineers and to ask them to treat it as an engineering problem. Instead of adding people as the service grows, they write software that does the operating. Instead of arguing with developers about whether to release, they agree in advance on how much unreliability is acceptable and let that number decide. Instead of hiding failure, they write it down, study it and design it out.

The book appeared at a particular moment. By the middle of the 2010s, many companies were moving their systems to cloud platforms, running hundreds of small services instead of a few large ones, and deploying many times a day. The DevOps movement had already argued that development and operations should stop being separate tribes. What was missing was a detailed, concrete account of what a mature practice looked like when the scale was enormous and the stakes were high. Google had been doing this since the early 2000s and had said little about it in public. This book opened the door.

Its intended readers are wide. It speaks to engineers who carry a pager, to managers who must decide how to staff and organise operations, and to developers who want to understand what happens to their code after it is released. It does not assume that the reader works at Google, but it does assume a working knowledge of how networked software is built and run. A reader who has never deployed a service will find some chapters abstract. A reader who has been woken at three in the morning by a failing system will recognise almost every page.

The book is long and uneven, as collections usually are. Some chapters are short essays of principle. Others are detailed technical accounts of load balancing or distributed consensus. A few are case studies of real incidents. The editors say openly that the chapters can be read in any order. That is useful advice, and this companion will return to it. What holds the book together is not a single narrative but a shared set of attitudes: that reliability is a feature to be engineered, that it has a price, that the price should be stated in numbers, and that the people who run systems deserve time to improve them.

In 2017 Google made the full text available to read free on the web, and in 2018 a companion volume, The Site Reliability Workbook, followed with more practical, step-by-step material drawn from Google and from other companies. This study edition concerns the original 2016 book.

The authors and editors

Because the book has dozens of contributors, there is no single author whose life explains it. What explains it is an institution and a role. Site reliability engineering as a named discipline began at Google in 2003, when Ben Treynor Sloss was asked to run a production team and, as he has described it, built it the way a software engineer would. His short definition of the role, that SRE is what happens when you ask a software engineer to design an operations function, is the seed of the whole book. He wrote its introduction, and his framing runs through every later part.

The four editors each brought a different strength. Betsy Beyer was a technical writer working with Google's SRE organisation, and her hand is visible in the book's consistent, readable prose despite its many voices. Chris Jones was an SRE who had worked on a range of Google services. Jennifer Petoff managed programs and education for SRE at Google, including training for new engineers. Niall Richard Murphy was a long-serving SRE manager with a background in networking and in writing about operations; he had co-written an earlier book on IPv6 network administration. Together they turned a pile of internal knowledge into something an outside reader could use.

The contributors were working engineers, not academics or consultants. That shapes the book in two ways. First, nearly every claim rests on experience with a real system: a storage service, an ads pipeline, a cluster scheduler, a global load balancer. Second, the authors sometimes take for granted tools and conditions that most readers lack. Google built its own cluster manager, called Borg, its own lock service, called Chubby, its own monitoring systems and its own network. When a chapter says that a problem was solved by writing a new internal system, the reader must translate that into what an ordinary organisation could do.

It also matters that the authors were insiders writing with their employer's approval. The book is honest about failure, and several chapters describe outages in detail. But it is not a critical history of Google. It presents the SRE model at its best and says little about where the model did not take hold, about the internal politics of staffing, or about how hard it was for many teams to meet the standards described. A reader should take it as a statement of practice and aspiration from people who believed in it, which is what it is.

The book's influence on the careers of its contributors and readers has been large. After 2016, site reliability engineer became a common job title across the industry. Several of the editors and contributors went on to write and speak further about the subject, and Murphy later co-edited further books on reliability. The workbook and later volumes, including one on building secure and reliable systems, extended the series. For the purposes of this companion, the important point is that the book carries the authority of a practice that had run for more than a decade at very large scale before anyone wrote it down.

The shape of the argument

The book is divided into five parts: an introduction, a part on principles, a long part on practices, a part on management, and a short set of conclusions. Several appendices follow, including sample documents of the kind Google uses internally. This structure tells you how to think about the book. The principles are the ideas. The practices are what the ideas look like when applied to particular problems. The management part deals with the human organisation that has to carry all this out.

The introduction sets out the bargain. It explains why Google chose to staff operations with engineers, what those engineers are expected to do, and the rules that keep the arrangement honest. Chief among those rules are a limit on how much of an engineer's time can go to manual operational work, and an agreement with product teams about how much unreliability is acceptable. A short chapter then describes Google's production environment from the point of view of an SRE, so that later chapters can refer to data centres, cluster management and internal services without explaining each one.

The principles part is short and dense, and it contains the ideas the book is best known for. It argues that one hundred percent reliability is the wrong target. It shows how to choose a small number of measures that reflect what users experience and how to set targets on them. It defines toil and explains why it must be kept down. It sets out a philosophy of monitoring, a history of how automation evolved at Google, a view of release engineering and a plea for simplicity. These chapters are where the reader learns to think like an SRE.

The practices part is the bulk of the book. It is loosely ordered by a model the book presents as a hierarchy of service reliability. At the base is monitoring, because without it you are blind. Above it comes incident response, then the analysis of what went wrong, then testing, then capacity planning, then the design of software for reliability, and finally the product itself. The chapters do not march strictly up this ladder, but the ladder explains their selection. There are chapters on alerting, on being on call, on troubleshooting, on emergency response, on managing incidents, on postmortems, on tracking outages, on testing for reliability, on load balancing at the front end and inside the data centre, on handling overload and cascading failures, on distributed consensus, on scheduled jobs, on data pipelines, on data integrity and on launching products reliably.

The management part turns to people. It covers how new SREs are trained, how teams deal with the steady flow of interruptions, how an overloaded team can be helped back to health, how SRE teams communicate and how the SRE relationship with product teams is set up and maintained. The conclusions compare SRE with reliability practices in other industries, such as aviation and manufacturing, and close with a short reflection on what has been learned.

The argument therefore moves in a recognisable way. It starts with a claim about roles and incentives. It derives from that claim a small set of numerical tools: targets, budgets and limits. It then shows those tools at work in many concrete settings. Finally it asks what kind of organisation can sustain them. A reader who keeps this movement in mind will not get lost in the practices chapters. Each one is an answer to the question of how the principles apply to a particular kind of trouble.

Idea one: operations as a software problem

The founding idea of the book is that running a large service is an engineering problem and should be staffed and managed as one. This sounds like a slogan, but it has concrete consequences. It means that the people who run production are hired with the skills of software engineers, are expected to write code, and are judged partly by how much of their own work they have automated away.

Consider the older model. A company has a web service. As traffic grows, the service needs more machines, more deployments, more monitoring, more people to answer alerts. The operations team grows in proportion. If the service doubles, the team roughly doubles. That model has a cost curve that rises as fast as success, and it tends to produce teams that are exhausted, conservative and in permanent conflict with the developers whose changes break things.

The SRE model aims to break the link between the size of the service and the size of the team running it. If a task is done by hand twice, an engineer should consider whether software can do it. If an alert fires every week for the same reason, someone should fix the reason rather than keep answering the alert. Over time, the service grows and the team does not, because the team's work goes into making the service run itself.

For this to work, there must be protection against drift. Operational work has a way of expanding to fill all available time. The book's answer is a cap. SRE teams at Google aim to spend no more than about half their time on operational work. The rest goes to engineering projects that reduce future operational load or improve the service. When a team's operational load rises above the cap, the excess is sent back to the product development team, for example by having developers share the pager or handle some tickets. This is meant to create pressure in the right direction. If a service is painful to run, the people who built it feel some of that pain.

An analogy may help. Imagine a building where the caretaker spends all day fixing leaking taps. One approach is to hire more caretakers as the building grows. The other is to give the caretaker a budget of time each week to replace bad fittings, redesign the plumbing and write rules for new installations. The second approach costs more in the short run and much less in the long run. SRE is the second approach, with the important extra rule that if the leaks become too many, the architects must come and help.

This idea is often confused with simple automation, or with the job title alone. Renaming an operations team as an SRE team without changing its hiring, its time allocation or its relationship with developers changes nothing. The book is clear that the model depends on the cap, on the ability to hand work back, and on management support for both. It is also sometimes confused with DevOps. The two overlap heavily. DevOps is a broad cultural movement that says developers and operators should share responsibility. SRE can be seen as one specific, opinionated way of implementing that idea, with particular rules and numbers attached.

Where the idea leads is to a different kind of career and a different kind of system. SREs become engineers whose product is the reliability of other people's products. Systems, in turn, are designed from the start to be operated by software: they expose health checks, they can be drained and restarted safely, they report useful metrics. The best measure of whether the idea has taken hold is whether new services arrive in production already shaped for automated operation, rather than needing to be tamed afterwards.

Idea two: embracing risk and the error budget

The book's most widely adopted idea is that perfect reliability is the wrong goal. At first this sounds careless. Surely a service should be as reliable as possible. The book's argument is that every additional unit of reliability costs more than the last, and that past a certain point users cannot even notice the difference.

Consider a service that is available 99.9 percent of the time. That allows roughly forty-three minutes of downtime in a thirty-day month. Moving to 99.99 percent cuts that to about four minutes. Moving to 99.999 percent cuts it to well under a minute. Each step requires more redundancy, more careful release processes, slower changes and more engineers. Meanwhile the user is reaching the service over a home network, a mobile connection and a device that are themselves far less reliable than the service. If the user's own path fails for an hour a month, the difference between four minutes and forty seconds of service downtime is invisible to them.

So the right question is not how reliable can we be but how reliable do we need to be. That is a product question, not just an engineering one. It depends on what users expect, what competitors offer, what the service is used for and what it costs to fail. A payments system and a photo-sharing feature deserve different answers. The book insists that this target be chosen deliberately, written down and agreed by both the product side and the reliability side.

Once a target exists, the gap between it and perfection becomes useful. If the target is 99.9 percent, then 0.1 percent of requests, or of time, can fail without breaking the agreement. The book calls this allowance the error budget. It can be spent. Releasing new features carries risk. Running experiments carries risk. Moving a service to new hardware carries risk. As long as the budget is not exhausted, the team can take those risks. If the budget runs out, releases slow or stop until reliability recovers.

The brilliance of this arrangement is that it turns an endless argument into a shared rule. In the old model, developers wanted to ship and operators wanted stability, and each meeting became a negotiation of opinions. With an error budget, both sides agree on the number in advance. The data then decides. If the service has been very stable, the developers have room to move fast. If it has been shaky, everyone can see why caution is needed. Nobody has to win an argument about attitude.

A household analogy works here. A family that agrees on a monthly budget for eating out does not need to debate each restaurant visit. While money remains, they can go. When it is spent, they wait until next month. The budget does not say that eating out is good or bad. It sets a limit that both partners chose, and then it removes the need to argue.

The idea is often misunderstood in two ways. Some readers take it as permission to be unreliable. It is not. The target is meant to be demanding, and the budget is meant to be guarded. Others treat the error budget as a punishment mechanism, freezing releases at the first sign of trouble. The book presents it as a tool for balancing two legitimate goods, speed and stability, not as a stick. A further confusion is between the budget and the target itself. Teams sometimes set a target that is higher than they can achieve, which leaves no budget at all and makes the whole system meaningless.

Where the idea leads is to a habit of thinking about reliability in terms of cost and value. Once you accept that some failure is acceptable, you can ask how to spend it well. You can choose to accept a slightly higher error rate during a risky migration because the long-term gain is large. You can protect the budget by improving release practices so that each change spends less of it. Reliability stops being a moral quality and becomes a resource to be managed.

Idea three: measuring what users feel

The error budget only works if the numbers behind it are meaningful. The book devotes a chapter to choosing them, using three related terms. A service level indicator, or SLI, is a carefully defined measurement of some aspect of the service. A service level objective, or SLO, is a target value or range for that indicator. A service level agreement, or SLA, is a contract with users, usually with consequences such as refunds if it is broken. The book's attention falls mostly on the first two.

The key move is to choose indicators that reflect what users actually experience, rather than what is easy to measure inside the machine. CPU usage on a server is easy to measure, but a user does not care about CPU usage. A user cares whether the page loaded, whether it loaded fast enough and whether the answer was correct. Good indicators therefore tend to be measures such as the fraction of requests that succeed, the fraction served faster than some threshold, or the freshness of data shown to the user.

The book recommends a small number of indicators per service. With too many, nobody watches them and they conflict. With too few, important failures go unseen. It also recommends defining them precisely: where the measurement is taken, over what time window, which requests count. A latency measurement taken at the server misses time spent in the network. A measurement taken in the user's browser includes things the team cannot control. Each choice has trade-offs, and the book asks teams to make them consciously.

It also warns against averages. If you report average latency, a service where most requests are fast and a few are very slow can look healthy while a meaningful fraction of users wait a long time. Percentiles are better. Saying that ninety-nine percent of requests complete within some limit tells you much more about the worst experiences users actually have. The slow tail is often where problems first appear.

Targets should be set with care. The book advises against setting objectives simply at current performance, because that locks the team into defending whatever level they happen to have reached. It advises keeping a margin between the internal objective and any external promise, so that the team notices trouble before a contract is breached. And it advises against being too strict. An objective that is never in danger gives no information and encourages users to depend on a level of service the team never meant to promise.

That last point leads to an interesting practice the book describes. When a service is far more reliable than its stated objective, other teams start to depend on that extra reliability without saying so. Then, when the service has an ordinary, within-budget outage, those teams break badly. The book describes a case where a service was deliberately taken down in a planned way to stop users relying on availability it had never promised. This sounds perverse but is sensible. It forces hidden dependencies into the open while the cost of discovering them is low.

This idea is often confused with general monitoring. Monitoring collects many signals for many purposes, including debugging. SLIs are a deliberately small set chosen to represent the user's experience and tied to explicit targets. A team can have thousands of metrics and still not know whether users are happy. The discipline of choosing a few user-centred indicators is what turns data into decisions.

Where it leads is to a common language. Once product managers, engineers and executives all talk about the same few numbers, conversations about reliability become concrete. Instead of saying the service feels slow, someone can say the latency objective was missed on three days this month and the budget is nearly spent. That shared vocabulary is perhaps the most transferable thing in the book, usable in organisations of any size.

Idea four: eliminating toil

The book gives a precise meaning to a word that operations people had always used loosely. Toil is the kind of work that is manual, repetitive, automatable, tactical rather than strategic, without lasting value, and that grows in proportion to the size of the service. Restarting a stuck process by hand, copying a configuration from one place to another, approving routine requests, running the same diagnostic commands every time a certain alert fires: these are toil.

The definition is careful because not all operational work is toil. Handling a novel incident is not toil, because it requires judgement and often leads to a lasting fix. Writing a design document is not toil. Meetings and administrative tasks are overhead, which is a different category. Toil is specifically the work a machine could do and that leaves the system no better after it is done. The test is useful. If you do something today and will have to do exactly the same thing next week, with no improvement in between, it is probably toil.

Why does it matter so much? The book gives several reasons. Toil scales with the service, so a team that accepts it will be overwhelmed as the service grows. Toil is boring, and boring work done under pressure produces mistakes. Toil crowds out engineering, so the team never gets the time to make things better. And toil damages careers and morale, because engineers who spend their days doing repetitive manual work are not learning or building anything. A team made entirely of toil quickly loses its best people.

This is why the cap on operational work exists. By keeping toil below about half of a team's time, the book aims to guarantee time for engineering, which in turn reduces future toil. The relationship is a loop. Engineering time reduces toil, which frees more engineering time. If the loop runs the other way, toil grows, engineering time shrinks, and toil grows faster still. The cap is a brake on the bad loop.

A useful comparison is with household chores. Washing dishes by hand every night is toil. Buying a dishwasher is engineering. But if you spend every evening washing dishes, you may never find the time to research, buy and install the dishwasher. The cap says: whatever happens, protect some evenings for the dishwasher project.

The idea is sometimes confused with a demand to automate everything. The book does not say that. Some tasks are rare enough that automating them costs more than doing them by hand. Some require judgement that software cannot yet supply. Automation itself can create new problems, which the book discusses in a separate chapter on how Google's automation evolved. The aim is not zero manual work. It is to keep manual work from swallowing the team and to direct effort toward the repetitive tasks that cost the most.

Where the idea leads is to a habit of measurement. Teams that take toil seriously track how much time goes into it, which tasks consume the most, and whether the trend is up or down. That measurement then guides which automation projects are worth doing first. It also gives managers evidence when a team is drowning and needs help, rather than vague complaints that everyone is busy.

Idea five: monitoring that respects human attention

Monitoring is the base of the reliability hierarchy, and the book's view of it is shaped by one scarce resource: the attention of the person on call. Machines can watch thousands of signals without tiring. People cannot. A monitoring system that wakes someone for every unusual number will soon be ignored, and an ignored alert is worse than none, because it creates the illusion of safety.

The book separates the outputs of monitoring into kinds. A page is an alert that needs a human to act now. A ticket is something that needs a human to act, but not immediately. Logging is information recorded for later diagnosis that nobody needs to read unless something goes wrong. Much of the craft of monitoring lies in putting each signal in the right bin. The book's rule for pages is strict: every page should be urgent, actionable and require intelligence. If a page can be handled by a script, the script should handle it. If it can wait until morning, it should be a ticket.

It also distinguishes symptoms from causes. A symptom is something the user would notice: errors, slowness, wrong answers. A cause is something internal that might lead to a symptom: a disk filling up, a process using too much memory. The book recommends paging on symptoms and using causes for diagnosis. This seems backwards at first, since catching a cause early can prevent the symptom. But causes are numerous and often harmless. A disk at ninety percent may be fine for weeks. Paging on every possible cause produces noise. Paging on user-visible symptoms means that every page corresponds to real harm.

For user-facing systems the book names four signals worth watching above all others. Latency is how long requests take, and it matters to separate the latency of successful requests from that of failed ones, since a fast error is not good news. Traffic is how much demand the system is under. Errors are the rate of failed requests, including requests that return wrong content. Saturation is how full the system is, measured against whatever resource is most constrained. These four are often called the golden signals. They are not a complete monitoring system, but a team that watches them well will catch most serious problems.

The book also prefers simple monitoring to clever monitoring. It is tempting to build systems that detect anomalies automatically, learn baselines, or infer causes. The book is wary. Complex rules are hard to understand at three in the morning, hard to trust and hard to maintain. Simple, predictable rules that a tired engineer can reason about are often better. Where clever analysis is useful, it belongs in dashboards and diagnostic tools rather than in the paging path.

An analogy: a smoke alarm in a home is valuable because it rarely sounds and, when it does, it means something. If it went off every time someone made toast, the family would take out the battery. The goal of monitoring design is to make every alarm mean something, so that nobody is tempted to remove the battery.

This idea is often confused with collecting more data. Many organisations respond to an outage by adding more alerts. The book suggests the opposite instinct is often right: remove alerts that did not help, consolidate those that fire together, and make the remaining ones clearer. Monitoring quality is measured by the ratio of useful pages to total pages, not by the number of things watched.

Where it leads is to healthier on-call work and faster response. When pages are rare and meaningful, engineers respond quickly and think clearly. When they are constant, engineers become numb. The book connects monitoring design directly to the wellbeing of the people doing the work, and that connection is one of its most humane features.

Idea six: blameless postmortems and learning from failure

Every large system fails. The question is what an organisation does afterwards. The book describes a culture of writing postmortems: documents that record what happened during an incident, what its impact was, what actions were taken to fix it, what the root causes and contributing factors were, and what follow-up work will prevent it from happening again. Google writes these for significant incidents and shares them widely inside the company.

The essential word is blameless. A postmortem does not ask who made the mistake. It asks how the system allowed a mistake to cause harm. If an engineer ran a command that deleted data, the postmortem asks why the command was able to do that, why there was no confirmation step, why the backup was not tested, and why the engineer believed the command was safe. The assumption is that people act reasonably given the information they have, and that when a reasonable action leads to disaster, the fault lies in the information, the tools or the process.

The reason for this is practical, not sentimental. If people are punished for mistakes, they hide them. Incidents go unreported, details are left out, and the organisation loses the chance to learn. If people are safe when they report honestly, the organisation gets an accurate picture of how failures happen and can fix the real causes. The book draws on the experience of fields such as aviation and medicine, where similar ideas about reporting and learning have long been developed.

A good postmortem is specific. It gives a timeline. It names the triggering event and separates it from the deeper conditions that made the event harmful. It quantifies impact: how many users, for how long, in what way. It lists action items with owners and deadlines. And it is reviewed by others, so that weak analysis is challenged and lessons spread. The book also stresses that the action items must actually be done. A postmortem whose recommendations sit in a document forever is theatre.

Consider a kitchen fire. A blaming response is to scold whoever was cooking. A blameless response asks why the pan was near the curtain, why there was no lid nearby, why the smoke alarm was slow, and whether the stove's controls were confusing. The cook may have been careless, but the next cook may be equally careless, and only changes to the kitchen will protect them.

The idea is often confused with a lack of accountability. Blameless does not mean nobody is responsible for anything. People are still responsible for writing honest postmortems, for completing action items, and for following agreed processes. What is removed is punishment for the honest error that triggered the incident. It is also confused with a search for a single root cause. Most serious incidents have several contributing causes, and the book's examples show multiple conditions lining up. Fixing only one leaves the others in place.

Where it leads is to an organisation that gets better with every failure. Over years, postmortems become a library of how things break. New engineers read them as part of training. Patterns appear across incidents, revealing weak points in tools or practices. The book describes practices such as a postmortem of the month and reading groups, ways of making the learning social and steady rather than occasional.

Idea seven: incidents, on-call and the human side of response

The book treats the experience of being on call with unusual seriousness. It recognises that carrying a pager is stressful, that it can damage sleep and judgement, and that a team which is constantly paged will make poor decisions. It therefore sets expectations about load. On-call shifts should produce a small, bounded number of incidents, so that each one can be handled carefully, followed up and written up. If a shift produces many more, the system is too noisy or too fragile, and that is a problem to fix rather than a burden to endure.

It also discusses the psychology of response. Under stress, people tend to act fast and think less, falling back on intuition when careful reasoning is needed. The book recommends habits that slow thinking down at the right moments: writing down what you observe, forming hypotheses before acting, testing them one at a time, and being willing to ask for help. It describes troubleshooting as a structured process of observing, hypothesising, testing and repeating, and warns against common traps such as fixating on recent changes, mistaking correlation for cause, and chasing symptoms that are unrelated to the problem.

For large incidents the book describes a formal structure of roles, modelled on emergency services. One person commands the incident and makes decisions. Others handle operational work, communications with stakeholders and planning. The point of separating roles is that a single engineer trying to debug, coordinate and update executives at the same time will do all three badly. A clear commander also prevents the familiar disaster where several people make conflicting changes to the system at once, each unaware of the others.

Practice is part of the method. The book describes exercises in which engineers role-play past incidents, with one person acting as the system and others trying to diagnose it. It describes large-scale disaster tests where real systems are deliberately broken to see whether teams can recover. These rehearsals reduce panic in real emergencies, because the steps have been walked through before. They also reveal gaps in documentation and tools while the cost is low.

The analogy is with fire drills and with the way hospitals run emergency rooms. Nobody expects a nurse to invent a procedure during a cardiac arrest. Roles are assigned, steps are known, and practice makes them automatic. The book asks that software emergencies be treated with the same respect.

This idea is often confused with heroism. Many organisations admire the engineer who stays up all night and saves the system single-handed. The book is cool toward this. Heroics are a sign that the system and process failed, and depending on heroes burns them out. A good incident is a dull one: clear roles, calm steps, a written record and a fix.

Where it leads is to a sustainable practice. Engineers can carry a pager for years without being broken by it. Incidents become shorter because response is organised. And the organisation accumulates skill rather than losing it each time a tired expert leaves.

Idea eight: simplicity, safe change and graceful overload

Several chapters, though they address different topics, share one underlying idea: most outages come from change or from overload, and both can be made safer by design. The book's chapter on simplicity argues that every line of code, every feature flag and every configuration option is a possible source of failure. Software that is not there cannot break. It praises engineers who delete code and asks that new features be weighed against the complexity they add. This is a theme other books on this shelf develop at length, and here it appears in its operational form.

Release engineering is treated as a discipline in its own right. Builds should be reproducible, so that the same source produces the same binary. Releases should be automated, so that they do not depend on someone remembering a sequence of manual steps. Changes should be rolled out gradually, first to a small fraction of machines or users, while their effects are watched, and rolled back quickly if anything looks wrong. Configuration should be treated with the same care as code, since a bad configuration change can be as harmful as a bad program. The aim is to make each change small, observable and reversible.

Overload is the other great source of trouble. When a service receives more requests than it can handle, the natural response of many systems is to slow down for everyone. Slow responses cause clients to retry, retries add more load, and the service falls further behind. Meanwhile, servers that fail push their traffic onto servers that are still up, which then fail in turn. The book calls this a cascading failure, and its chapters on handling overload and addressing cascading failures are among its most technically valuable.

The remedies are concrete in principle. A service should know its own capacity and reject excess work early and cheaply, rather than accepting everything and serving nothing. Requests should carry priorities, so that critical work survives when optional work is shed. Clients should retry with increasing delays and with limits, so that a brief failure does not turn into a flood. Deadlines should be passed along chains of calls, so that a server does not waste effort on a request whose caller has already given up. Load balancing should spread work in ways that account for how busy each server actually is. Graceful degradation, serving a simpler or staler answer when under strain, is often better than serving nothing.

An analogy is a restaurant on a busy night. A good restaurant takes reservations, turns some walk-ins away politely, offers a reduced menu when the kitchen is overwhelmed, and does not let waiters keep piling orders onto a kitchen that has stopped producing food. A bad restaurant seats everyone, then serves nobody well, and customers leave angry after an hour. Overload handling is the discipline of being the good restaurant.

These ideas are often confused with simply adding capacity. More machines help, but every system has some limit, and traffic can always exceed it through a spike, an attack, a bug in a client or the loss of a data centre. A system that behaves well only below its limit is fragile. A system that behaves predictably above its limit is robust. The book's point is that the second property must be designed in.

Where they lead is to a view of reliability as a property of the whole system, including clients, load balancers and dependencies. A single well-built server does not guarantee anything if its callers retry badly or its dependencies collapse under load. The later chapters on distributed consensus, data pipelines and data integrity extend this view. The data integrity chapter makes a memorable point: what matters is not whether you have backups but whether you can restore from them, and the only way to know is to test restoration regularly.

The tradition around it

Site Reliability Engineering sits at the meeting point of several older traditions. One is classic systems administration, the craft of keeping Unix machines and networks running, which had its own books, conferences and culture long before Google. Many SRE practices, such as careful change management and monitoring, refine that craft rather than replace it. Another is the reliability engineering of physical industries, where ideas about failure rates, redundancy and incident investigation were developed for aircraft, power plants and factories. The book's closing comparison with other industries acknowledges this debt.

A third tradition is the DevOps movement, which grew in the late 2000s around the idea that development and operations should share goals and tools. DevOps was strong on culture and weaker on specific rules. SRE offered specific rules: the toil cap, the error budget, the service level objective. Many people now describe SRE as one concrete implementation of DevOps ideas, and that is a fair summary.

Within this bay, the book has several natural companions. The UNIX Programming Environment by Kernighan and Pike describes the small-tools, composable philosophy on which much operational automation still rests. Designing Data-Intensive Applications by Martin Kleppmann covers replication, consensus and failure in distributed data systems in far more depth than this book's chapters on the same topics, and the two read well together: Kleppmann explains why distributed systems are hard, and this book explains how to run them anyway. A Philosophy of Software Design by John Ousterhout develops at length the argument that complexity is the root of trouble, which this book makes briefly in its chapter on simplicity.

Peopleware by DeMarco and Lister is relevant to the management part. Its insistence that knowledge workers need protection from interruption and from unsustainable pressure matches this book's concern for on-call load and toil. The Psychology of Computer Programming by Gerald Weinberg, with its attention to the human and social side of programming, anticipates the blameless postmortem's assumption that errors come from systems more than from individuals. Extreme Programming Explained by Kent Beck shares the conviction that small, frequent, reversible changes are safer than large, rare ones. Working Effectively with Legacy Code by Michael Feathers is relevant whenever an SRE team inherits a fragile service and must make it safer to change.

After 2016 the book spawned its own tradition. The workbook of 2018 offered more practical, step-by-step guidance and examples from companies other than Google. Later books from the same circle addressed security and reliability together. Industry practice adopted service level objectives widely, and many monitoring and incident-management tools now build in the concepts the book named. Conferences devoted to SRE became common. The term itself spread so widely that it now covers a range of roles, some faithful to the original model and many not.

Questions and criticisms

The most common criticism is about scale. The book describes practices developed at one of the largest computing organisations on earth, with custom infrastructure, thousands of engineers and very large budgets. A small company cannot staff separate SRE teams, cannot build its own cluster manager and may not have enough traffic to make some measurements meaningful. Readers have rightly asked how much transfers. The fair answer is that the principles transfer well and many practices do not. Error budgets, user-centred objectives, blameless postmortems and the definition of toil work at any size. Dedicated teams with formal engagement models and the ability to hand back the pager require an organisation large enough to have both an SRE team and a product team to hand things to.

A second criticism concerns the gap between description and reality. The book presents Google's practice at its best. Former employees and outside observers have noted that not every Google team worked this way, that the toil cap was sometimes more aspiration than fact, and that the SRE organisation had its own internal tensions. This does not make the book dishonest, but it means that readers should treat it as a model rather than a documentary.

A third concerns the title itself. After the book, many companies renamed their operations teams as SRE without adopting the structural rules that make the model work. The result was often the old operations job under a new name, sometimes with higher expectations and no more support. This is not the book's fault, but its success made the misuse common. A reader who wants to adopt SRE should look for the cap on toil, the agreed objectives and the power to push work back, not the job title.

A fourth concerns the book's form. As a collection of chapters by many hands, it repeats itself in places, varies in depth and occasionally contradicts itself in emphasis. Some chapters are general enough to apply anywhere, while others describe internal Google systems in detail that is of limited use outside. Readers sometimes find the length daunting. The editors' advice to read selectively is the right response.

Some things have aged. The specific tools and internal systems described have been replaced or reimplemented, both inside Google and in public tools. The rise of managed cloud services means many organisations no longer run the low-level infrastructure the book discusses. Observability practices, with richer tracing and more flexible querying of telemetry, have moved beyond the monitoring philosophy the book describes, though its core rules about paging still hold. Later work on resilience engineering has pushed further on the human side, questioning even the language of root causes in favour of richer accounts of how complex systems succeed and fail.

What has held up is substantial. The idea that reliability targets should be explicit and below one hundred percent is now standard. The error budget is widely used. Blameless postmortems are common practice in serious engineering organisations. The definition of toil gave teams a word for something they had always felt. The guidance on overload, retries and cascading failure remains technically sound. For a book that describes the practices of one company at one time, that is a strong record.

Why it is on this shelf

This book is on the shelf because it shows how a vague virtue, reliability, can be turned into a set of numbers, rules and habits that people can act on. That move from virtue to measure is useful far beyond software. Any system that people depend on, from a water supply to an exam schedule, can be asked the same questions: what do users actually experience, how much failure is acceptable, how is that measured, and what happens when the limit is reached.

It belongs beside the economics books for its treatment of cost. The error budget is an economic idea. It says reliability has diminishing returns and should be bought only up to the point where the next unit is worth its price. It treats engineering time as a scarce resource to be allocated between maintenance and improvement. A reader of economics will recognise marginal reasoning in a new setting.

It belongs beside the books on science for its method. Troubleshooting as the book describes it is applied scientific reasoning: observe, form hypotheses, test, revise. The postmortem is an experiment report written after nature has run the experiment for you. The insistence on measurement over impression is the scientific attitude applied to a working system.

It also has something to offer the reader of Vedanta, though less directly. The blameless postmortem rests on an attitude toward error that is calm rather than accusatory: actions arise from conditions, and changing the conditions changes the actions. The book's concern for the steady, unheroic discharge of duty, and its suspicion of the dramatic rescue, sits comfortably with older teachings about acting well without being consumed by the results. We do not press the comparison, but a reflective reader may notice it.

Most of all, it is here because it is honest about failure. It assumes that things will break and asks how to break well, learn quickly and improve steadily. That is a sound attitude for any long-lived work.

How to read it

Do not read this book from cover to cover on a first pass. It is long, its chapters vary in depth, and some are specialised. Read it in three rounds.

In the first round, read the introduction and the principles part slowly. These chapters, on the SRE role, embracing risk, service level objectives, eliminating toil, monitoring, automation, release engineering and simplicity, contain the ideas the rest of the book applies. They are short. Give them a week, a chapter or two a day. With a pencil, work through the arithmetic of availability targets: convert percentages into minutes of downtime per month and per year until the numbers feel real. Write down, for a system you know, what its indicators and objectives would be.

In the second round, read the chapters on practice that concern incidents and learning. These include being on call, effective troubleshooting, emergency response, managing incidents and postmortem culture. Read the incident case studies with attention, asking at each point what you would have done. Then read the appendix material that shows sample postmortems and incident documents. This round takes another week or two.

In the third round, choose by need. If you work on systems that handle heavy traffic, read the chapters on load balancing, handling overload and cascading failures, which are among the most technically rich. If you work with data, read the chapters on data pipelines and data integrity. If you lead people, read the management part. The chapter on distributed consensus is demanding and can be skipped on a first reading unless you build such systems; it is better read after Kleppmann.

Skip on a first pass the detailed descriptions of Google's internal infrastructure, except for the overview chapter, which you need for vocabulary. Skim the chapters on launch coordination and scheduled jobs unless they bear on your work.

Throughout, keep a page of notes on how each idea would apply in a small team. That translation is the real work of reading this book.

For what to read next from this shelf, go to Designing Data-Intensive Applications for the deep technical background on distributed systems, A Philosophy of Software Design for the argument about complexity at the level of code, and Peopleware for the human and organisational side. The UNIX Programming Environment is worth reading for the composable tools mindset that underlies much operational automation.

Questions to carry

  • What would a user of this system actually notice if it failed, and how would you measure that directly?
  • What reliability target is high enough to satisfy users but low enough to leave room for change?
  • If the error budget for a month were exhausted in its first week, who would decide what happens next, and on what basis?
  • Which tasks in your own work are toil by the book's definition, and which only feel like toil?
  • What would happen if half of your team's time were protected for engineering, and what would have to stop?
  • Which alerts in a system you know are actionable, and which could be removed or turned into tickets?
  • When you last saw a failure, did the discussion afterwards ask who or ask how?
  • What hidden dependencies exist on services that are more reliable than they promise to be?
  • How would this system behave under twice its expected load, and would it fail gently or collapse?
  • When were backups last restored, not just taken?
  • Which practices in the book require Google's scale, and which work in a team of three?
  • Where does the pursuit of reliability conflict with the pursuit of new features, and how should the conflict be settled?
  • How can a person carry responsibility for a system for years without being worn down by it?

Words to know

  • Site reliability engineering (SRE): the practice of running production systems by applying software engineering, with engineers who automate operational work and share agreed reliability targets with product teams.
  • Toil: operational work that is manual, repetitive, automatable, tactical, without lasting value, and growing with the size of the service.
  • Service level indicator (SLI): a precise measurement of some aspect of service quality, such as the fraction of successful requests.
  • Service level objective (SLO): a target value or range for an indicator, chosen deliberately and agreed by the teams involved.
  • Service level agreement (SLA): a contract with users that promises a level of service and states consequences if it is not met.
  • Error budget: the amount of unreliability permitted by an objective, which can be spent on changes and risks until it runs out.
  • Availability: the fraction of time, or of requests, for which a service works as intended.
  • Percentile latency: a measure of response time below which a given share of requests fall, used instead of averages to reveal slow experiences.
  • Golden signals: the four signals the book recommends watching for user-facing systems, namely latency, traffic, errors and saturation.
  • Saturation: how close a system is to the limit of its most constrained resource.
  • Page: an alert that requires immediate human action.
  • Ticket: a request for human action that can wait.
  • Postmortem: a written record of an incident, its impact, causes and follow-up actions.
  • Blameless culture: an approach in which incident reviews focus on systems and processes rather than on punishing individuals.
  • Incident commander: the person who coordinates response to a major incident and makes decisions, separate from those doing hands-on repair.
  • Cascading failure: a failure that spreads as overloaded or broken components push load onto others, which then fail in turn.
  • Load shedding: deliberately rejecting some requests when overloaded so that the rest can be served.
  • Graceful degradation: serving a reduced but useful response under strain rather than failing entirely.
  • Exponential backoff: a retry policy in which each retry waits longer than the last, to avoid flooding a struggling service.
  • Canary release: rolling a change out to a small portion of servers or users first, to detect problems before full deployment.
  • Release engineering: the discipline of building, packaging and deploying software reproducibly and safely.
  • Distributed consensus: methods by which several machines agree on a value despite failures, used for leader election, locks and configuration.
  • Capacity planning: forecasting demand and provisioning resources so that a service can meet it with a margin.

A note on this edition

This is a study edition written for the shelf in our own words. It describes and discusses Site Reliability Engineering but does not reproduce it. The book itself is in copyright and is published by O'Reilly; Google has also made its text available to read online. It is worth getting from a library or bookshop and reading in full, especially its case studies and appendices, which no summary can replace.

More from “Software and engineering”

The whole section →