Site Reliability Engineering (SRE)

Applying software engineering to operations, so reliability is designed, measured and shared rather than heroic.

"SRE is what happens when you ask a software engineer to design an operations team." — Ben Treynor Sloss, Google

Site Reliability Engineering treats reliability as an engineering problem with clear targets, rather than an aspiration that depends on a few people who know where the bodies are buried. It started at Google, but the ideas travel well: decide how reliable a service needs to be, measure it honestly, and use the gap between the two to decide what to work on next.

For most enterprises, the value of SRE isn't a new team with a new title. It's a shared language between product and operations. When everyone agrees what "reliable enough" means, debates about whether to ship or stabilise become decisions based on data rather than on who argues loudest.

Reliability targets: SLIs, SLOs and SLAs

Start with what users experience. A Service Level Indicator is a measurement of that experience, such as the share of requests that succeed or the share served within 300 milliseconds. A Service Level Objective is the target for that indicator over a period, for example 99.9% of requests succeeding over 30 days.

Service Level Agreements are contracts with consequences, usually set looser than the internal objective so you have room to react before a breach. Most teams need far fewer SLOs than they think: two or three per critical user journey is plenty.

SLI
A measured indicator of user experience: availability, latency, freshness or correctness.
SLO
The target for an SLI over a time window. Internal, and owned jointly by product and engineering.
SLA
An external commitment with penalties. Keep it looser than the SLO.

Error budgets: turning reliability into a decision

If the objective is 99.9%, the remaining 0.1% is the error budget: the amount of unreliability you can spend on change, experiments and the occasional incident. While budget remains, teams ship freely. When it is spent, reliability work comes first until the service recovers.

Error budgets work because they replace opinion with an agreed rule. They also make the cost of risky releases visible. A team that burns its budget every month has a delivery or design problem worth fixing, not just a run of bad luck.

Toil, on-call and incidents

Toil is manual, repetitive, automatable work that grows with the size of the service and adds no lasting value. SRE teams cap it, commonly at about half of their time, and spend the rest on engineering that removes it. Measuring toil is the first step; most teams underestimate it.

On-call should be sustainable: a reasonable number of pages per shift, every page actionable, and a clear escalation path. Incidents end with a blameless review that asks what made the failure possible, and the lessons go back into code, alerts and runbooks.

Burn-rate alerting
Paging when the error budget is being consumed too fast, rather than on raw thresholds. Fewer, better pages.
Toil budget
A cap on manual operational work, with the rest of the time reserved for automation and reliability engineering.

SRE in the age of AI

AI is changing operations in two directions at once. It helps SRE teams: summarising alerts and logs, suggesting likely causes, drafting post-incident reviews and runbooks. It also creates new things to make reliable: model endpoints, retrieval pipelines and agents with their own failure modes and costs.

The principles still hold. Define SLOs for AI features too, such as answer latency, groundedness or evaluation pass rate. Keep detection deterministic and let AI help with diagnosis, inside limits you control. And treat agents that act on production like any other change: scoped permissions, audit trails and a human approval for anything risky.

How to put it into practice

  1. Pick one critical user journey, such as sign-in or checkout, and define two SLIs for it: success rate and latency.
  2. Set an SLO from current performance, not from ambition. You can tighten it later.
  3. Agree an error-budget policy with the product owner: what happens when the budget is spent, and who decides.
  4. Replace threshold alerts for that service with burn-rate alerts on the SLO, and delete alerts nobody acts on.
  5. Measure toil for a month, then automate the top three sources.
  6. Run a blameless review for every significant incident and track the actions to completion.

Common mistakes

  • Setting 99.99% targets because they sound good. Every extra nine costs far more than the last one.
  • Renaming the operations team "SRE" without changing what they work on or how they are measured.
  • Having dozens of SLOs that nobody reviews. A handful of meaningful ones is far more useful.
  • Treating the error budget as a target to spend rather than a safety margin.

How to measure progress

  • SLO attainment per critical journey, reviewed monthly with product.
  • Pages per on-call shift, and the share that needed action.
  • Time spent on toil versus engineering work.
  • Time to restore service, and repeat incidents of the same class.

Go further