1. Why SRE? #
Measuring reliability from the user's point of view.
The core idea #
SRE (Site Reliability Engineering), formalized by Google, starts from an observation: 100% reliability is neither possible nor desirable. Each extra nine is very expensive and slows down delivery, while users cannot tell the difference between 99.99% and 100% (their own network is less reliable).
So you set an explicit reliability target, measured from the user's point of view, and accept the remaining margin as a budget to spend (deployments, experiments, incidents).
2. SLI, SLO, SLA #
Three acronyms not to confuse.
Definitions #
| Term | Definition | Example |
|---|---|---|
| SLI (indicator) | A measure of service quality, usually a ratio of good events to total events | Share of HTTP requests without a 5xx error and served in less than 300 ms |
| SLO (objective) | The target value of the SLI over a time window | 99.9% over a rolling 30 days |
| SLA (agreement) | A contractual commitment with consequences | 99.5% per month, otherwise a 10% discount |
The most common SLIs #
| Type of service | Recommended SLI |
|---|---|
| API, website | Availability (non-5xx responses) and latency (share of requests under a threshold) |
| Batch processing | Freshness (age of the last successful run), coverage |
| Data pipeline | Freshness, correctness |
| Storage | Durability, throughput |
Good practice: Express latency as a ratio (« 99% of requests in less than 300 ms ») rather than an average or an instantaneous percentile: the ratio accumulates over the window and is computed exactly with histogram buckets.
3. How many nines? #
The objective sets the budget.
Allowed downtime #
| SLO | Per 30 days | Per year |
|---|---|---|
| 99% | 7 h 12 min | 3 d 15 h |
| 99.5% | 3 h 36 min | 1 d 19 h |
| 99.9% | 43 min | 8 h 46 min |
| 99.95% | 21 min 36 s | 4 h 23 min |
| 99.99% | 4 min 19 s | 52 min |
Common mistake: An SLO stricter than the reliability of its dependencies is unsustainable: a service that depends on a 99.9% database cannot aim for 99.99% without redundancy.
