Simple definition#
Site reliability engineering (SRE) applies software engineering to operations. Its central idea: decide how reliable a service needs to be (a Service Level Objective), measure it, and use the gap between 100% and the objective — the error budget — to balance reliability work against feature delivery.
SLI, SLO, SLA#
| Term | Meaning | Example |
|---|---|---|
| SLI — indicator | A measurement of user-visible behaviour | % of /checkout requests that succeed within 300 ms |
| SLO — objective | Target for an SLI over a window | 99.9% over 28 days |
| SLA — agreement | A contract with consequences | 99.5% monthly, or service credits |
Set SLOs stricter than SLAs so you act before breaching contracts. Not every service needs an SLA; every important service needs SLOs.
Good SLIs#
| Service type | SLIs |
|---|---|
| Request/response (APIs, web) | Availability (good / valid requests), latency (requests faster than threshold) |
| Data pipelines | Freshness, completeness, correctness |
| Storage | Durability, availability of reads/writes |
Measure as close to the user as possible (load balancer or gateway, synthetic checks, real-user monitoring), as a ratio of good events / valid events.
Error budgets#
Error budget = 1 − SLO. A 99.9% SLO over 30 days allows about 43 minutes of full unavailability (or the equivalent in failed requests).
| SLO | Allowed downtime per 30 days |
|---|---|
| 99% | ~7.2 hours |
| 99.5% | ~3.6 hours |
| 99.9% | ~43 minutes |
| 99.95% | ~22 minutes |
| 99.99% | ~4.3 minutes |
Error budget policy (agreed with product owners): while budget remains, ship features; when it is exhausted, prioritise reliability work and slow risky releases.
Burn-rate alerting#
Alert when the budget is being consumed too fast, not on every error spike:
| Alert | Condition (for a 99.9% SLO) | Meaning |
|---|---|---|
| Page (fast burn) | Burn rate ≥ 14.4 over 1 h and 5 min | 2% of the monthly budget gone in an hour |
| Page (medium) | Burn rate ≥ 6 over 6 h and 30 min | 5% in six hours |
| Ticket (slow burn) | Burn rate ≥ 1 over 3 days | On track to exhaust the budget |
Multi-window conditions reduce false alarms and still detect fast incidents. Tools such as Sloth, Pyrra or OpenSLO definitions generate these rules for Prometheus.
Toil and automation#
Toil is manual, repetitive, automatable work that scales with load and has no lasting value (restarting pods, manual certificate renewals, provisioning by ticket). SRE teams cap toil (Google’s guideline: under 50% of time) and automate it away — often by building it into the platform.
Incident management#
Roles#
| Role | Responsibility |
|---|---|
| Incident commander | Owns coordination and decisions; does not debug |
| Operations / technical lead | Investigates and mitigates |
| Communications lead | Status page, stakeholders, executives |
| Scribe | Timeline of events and decisions |
Principles#
- Mitigate first (roll back, fail over, scale, disable a feature flag), find root cause later.
- Declare incidents early; it is cheap to downgrade.
- Use severity levels with clear criteria (user impact, revenue, data, security).
- Communicate on a cadence, even when there is no news.
Blameless postmortems#
A postmortem records impact, timeline, contributing factors, what went well, and owned, prioritised actions. “Blameless” means focusing on systems and decisions given the information available — people should feel safe to share details, or you will never learn the real causes.
On-call that is sustainable#
- Alerts must be actionable and tied to SLOs; delete noisy alerts.
- Runbooks linked from every alert.
- Rotations of 5–8 people; follow-the-sun where possible; compensation and recovery time.
- Track pages per shift; > 2 incidents per shift is a reliability signal, not a staffing one.
SRE in a platform organisation#
flowchart LR
A["Embedded SRE<br/>in product teams"] --- B["Platform SRE<br/>reliability of the platform itself"]
B --- C["Consulting / enabling SRE<br/>SLO workshops, reviews"]
Platform teams bake SRE practices into golden paths: default SLOs and dashboards per service template, burn-rate alerts, runbook templates and incident tooling.
Common mistakes#
Quick check#
What is the difference between an SLI, an SLO and an SLA? An SLI measures user-visible behaviour; an SLO is the target for it; an SLA is a contractual commitment with consequences, set looser than the SLO.
How much downtime does a 99.9% SLO allow per 30 days? About 43 minutes.
What is an error budget policy? An agreement on what happens as budget is consumed — ship freely while budget remains; prioritise reliability and slow risky changes when it is exhausted.
Why alert on burn rate instead of error rate? Burn rate relates errors to the SLO, alerting only when the budget is threatened; multi-window conditions catch fast and slow burns with fewer false alarms.
What does the incident commander do? Coordinates the response, assigns roles, makes decisions and manages communication — without doing the hands-on debugging.
What is toil? Manual, repetitive, automatable work that scales with load and has no lasting value.
Summary#
- Define SLIs close to users; set SLOs; derive error budgets and policies.
- Alert on multi-window burn rates; keep alerts actionable.
- Run incidents with clear roles; mitigate first; blameless postmortems with owned actions.
- Eliminate toil; build SRE defaults into the platform.
References#
- Beyer et al., Site Reliability Engineering, O’Reilly, 2016, and The SRE Workbook, 2018 (chapter “Alerting on SLOs”).
- OpenSLO.
- PagerDuty, Incident Response documentation.