Services

Resources

Company

SRE (site reliability engineering)

Site reliability engineering (SRE) is a discipline that treats operations as a software problem. SRE teams set measurable reliability targets for a service, automate repetitive operational work, and use data from production to decide when to ship features and when to invest in stability. Google introduced the practice in the early 2000s.

How it works

SRE starts with what users need. The team picks service level indicators (SLIs), such as the share of requests served in under 300 ms, and sets service level objectives (SLOs) on them. The gap between the SLO and 100% is the error budget. A 99.9% monthly SLO allows 43.2 minutes of failure in 30 days. Google's SRE book also suggests capping manual operational work, called toil, at 50% of an engineer's time so the rest goes to automation.

Why it matters in production

Without SRE, reliability depends on whoever has been on call the longest. With it, a team has shared targets, clear rules for when to slow releases, and blameless postmortems that stop the same incident from recurring.

See also

On the One2N blog

References

  1. Site Reliability Engineering, introduction (Google SRE book)

  2. Eliminating toil (Google SRE book)

Comic about site reliability engineering: the goal is 99.9% uptime, allowing about 43 minutes down in a 30 day month, the error budget; a server crashes 4 times and Asha restarts it by hand, 10 minutes each, using 40 of 43; Kai asks to ship a feature Friday and is told no until reliability is fixed; Asha automates the restart, and reviews look for causes in the system.