Most organisations that “have SLOs” have dashboards with a target line on them. The target changes nothing: nobody ships slower when it is red, nobody ships faster when it is green, and the pager is still wired to CPU. An SLO earns its keep only when it is a decision instrument — it tells you when to page, when to stop shipping, which dependency to fix, and what reliability you can honestly sell. This chapter is about the engineering and the politics needed to get there.
Decision-grade SLOs attach to critical user journeys, not services. A per-service SLO on an internal pricing service is a diagnostic for the team that owns it; nobody outside that team should make decisions on it, because a user never experiences “pricing”.
Every SLI is good events ÷ valid events, and in practice all the argument lives in the definition of valid. Three rulings decide whether the SLO is honest. First, your own 429s and 503s from load shedding are bad events. Teams exclude them because “we did it on purpose”, and the result is an SLO that reads 100% exactly when admission control is rejecting a third of checkouts. Second, decide whether you count attempts or outcomes. If a client retries three times and the fourth succeeds, attempt-level counting records three failures and dilutes the denominator; outcome-level counting records one success and hides the 3-second delay. Count outcomes for availability and put the retry cost into the latency SLI, where it actually lands on the user. Third, exclude traffic you would not fix anything for — synthetic probes, known abusive ASNs, clients on deprecated API versions — explicitly, in the query, with a comment, so the exclusion is reviewable.
step 1
view cart
availability
valid: GET /cart from signed-in session
good: 2xx/3xx rendered
step 2
price quote
latency
valid: quote calls, excl. bot ASNs
good: ≤ 400 ms at edge
step 3
place order
availability + latency
valid: POST /orders incl. 429 + 503
good: 201 ≤ 1.5 s
step 4
payment auth
correctness
valid: auth attempts w/ valid card
good: no double-charge, no orphan hold
step 5
confirmation
freshness
valid: orders placed
good: visible in ‘My orders’ ≤ 60 s
Journey SLI = the ratio of journeys that completed well, not the mean of five step ratios. A user who fails at step 3 never produces steps 4–5, so step-level ratios overstate journey success.
Step 3 counts your own 429s and 503s as bad. Exclude them and the SLO reports perfection exactly while load shedding is turning customers away.
Two structural choices matter more than they appear. Request-based SLIs weight every request equally, so an outage at peak burns more budget than the same outage at 03:00 — which matches user harm. Time-slice SLIs (“fraction of minutes where p99 < 300 ms”) are easier to explain and robust for low-traffic services, but a bad minute at the trough costs the same as one at peak, and the choice of slice length quietly sets your tolerance for short blips. Use request-based wherever volume allows; switch to time-slices below a few requests per second, where one failure out of forty in a five-minute window is statistically meaningless but reads as 2.5% errors.
Pitfall · the step-level average
Every measurement point has a blind spot, and the most dangerous one sits where most teams measure: in the service. Server-side SLIs have a collapsing denominator. When the failure is upstream of your process — DNS, BGP, an expired certificate at the edge, a load balancer out of connections — requests never arrive, so they are neither good nor bad, and the ratio stays at a clean 100%. The October 2021 Facebook outage is the extreme case: once the BGP routes to its DNS servers were withdrawn, clients could not resolve the domains at all, and no server-side error counter could see that. The ordinary case is quieter: a misconfigured health check drains half a pool, the LB returns resets to a third of clients, and the application dashboards show lower traffic with perfect success.
Server-side SLIs have a collapsing denominator: in a reachability failure, requests that never arrive are neither good nor bad, so the ratio stays at 100%. Client-side data sees everything but is noisy, sampled and delayed. Serious SLO programs alert on the edge and reconcile against RUM.
The practical answer is layered. Put the primary SLI at the edge — the first hop you own, where TLS terminates — because it sees every request that reached you, it has a status and latency for each, and it is under your control. Run synthetic probes from outside your network to cover the reachability class, with low weight in the SLI itself because probes follow a few fixed paths. Use RUM as the reconciliation source: it is sampled, delayed and polluted by bad client networks, but it is the only layer that sees “200 OK, blank page”. When edge and RUM disagree by more than the usual gap, that divergence is itself worth alerting on — it is how you find the failure classes your SLI cannot see. So is the denominator: a drop in valid events against the same hour last week is often the only server-side trace of a reachability failure, and it belongs on the same page as the SLO.
Latency SLIs have a measurement trap of their own. Percentiles do not aggregate: you cannot average per-pod p99s into a fleet p99, and a p99 over a window hides whether 1% or 0.1% of users were over the line. Express latency as a threshold on a count — proportion of requests faster than 400 ms — which is additive across pods, regions and time, and compatible with error budgets. If you compute it from a histogram, put a bucket boundary exactly at the threshold so the good count is a bucket read, not an estimate. Without one you are back to interpolation — Prometheus’ histogram_quantile assumes a uniform spread inside the bucket — so a 400 ms target measured with 250 ms and 500 ms buckets is a guess, and the guess moves when the shape inside the bucket shifts, which is exactly what a latency regression does.
Targets are usually set by what sounds respectable. They should be set by two constraints: the level at which users change behaviour (abandon, retry, call support, churn), and the level your architecture and on-call process can actually deliver. Above the first, extra reliability is invisible and expensive; above the second, the SLO is a permanent red number that everyone learns to ignore. The job is to find the band between them, and it is often narrower than people expect.
43.2 min
99.9% · 30 days
21.6 min
99.95% · 30 days
4.32 min
99.99% · 30 days
26 sec
99.999% · 30 days
The second constraint is where the arithmetic surprises people. Take a realistic human-driven incident: five minutes for the alert to evaluate and fire, five to get a response, ten to orient, ten to roll back. Thirty minutes. At 99.9% that is most of a month’s budget; at 99.99% it is about seven months’ worth in one event. So four nines is not a harder version of three nines — it needs a different operating model. You cannot get there by paging faster; you get there by making budget spent = fraction of traffic affected × duration small on both terms: automated rollback that acts before a human reads the page, and changes that reach a small cell before they reach the fleet.
Budget spent = fraction of traffic affected × duration. At 99.99% one full-fleet incident at human speed spends ~7 months of budget; the same incident confined to a 5% cell spends a third of one month. Four nines is bought with blast-radius control and automated rollback, not faster humans.
Two corrections make that arithmetic honest. First, incidents are not the only thing that spends budget. Every service has a background error rate — client disconnects counted as 5xx, a deploy that drains connections badly, a dependency’s steady trickle of timeouts. A baseline of 0.015% errors against a 99.95% target is a burn rate of 0.3: 30% of the budget is gone before anything goes wrong, and nobody experiences it as an incident. Measure the baseline over a quiet month before choosing the target; if it is above about half the budget, fix the floor first, because tightening the target on top of it just moves you to permanent red. Second, budget per incident is budget ÷ incident count, and incident count is driven mostly by change rate. Divide what is left by the number of change-induced incidents you actually had last quarter, and the target turns into a concrete requirement on time-to-mitigate at each blast radius.
Each cell is the detect-to-mitigate time one incident may take at that blast radius: budget × (1 − background share) ÷ incidents ÷ fraction affected. Read a row as a requirement list. At 99.99% a fleet-wide bad change gets about a minute and a regional one about four; the target is only feasible if changes reach users through cells or canaries whose rollback is automatic.
This gives you a useful review question for any proposed target: show me the incident that fits in this budget. If the answer depends on detection and mitigation times the team has never achieved, the target is a wish. The reverse check matters as well. A service that ends every quarter with 90% of its budget unspent is being too conservative — slow rollouts, deferred migrations, features held back for risk that was never going to show up. An unspent budget is not a trophy; it is velocity you paid for and did not use.
Architect's note · the SLO is not the SLA
For hard dependencies in series — any one failing fails the request — availabilities multiply. Eight dependencies at 99.9% each give 0.999⁸ ≈ 99.2% before your own code fails once. That is the arithmetic behind the most common SLO dispute: a team commits to 99.95% while sitting behind an identity service, a config service, two datastores and a payments gateway, each promising 99.9%. The commitment cannot be met without changing the architecture, however good the team is at operations.
2 replicas · each 99.9%
share of failures that are common-mode
A ≈ 1 − [c·u + ((1−c)·u)²], u = 0.001. The cap is 1 − c·u: correlation, not replica count, sets the ceiling.
There are only three ways to push past that ceiling, and it pays to name which one you are using. Turn hard dependencies into soft ones: serve from cache when the recommendation service is down, accept an order with a deferred fraud check, use last-known-good config — each of these moves a dependency out of the product. Take dependencies off the request path: precompute, push instead of pull, move a synchronous call into an async pipeline. Add redundancy — and here the naive formula, 1 − (1 − a)ⁿ, lies badly because it assumes independence. Split each replica’s failures into a common-mode share c (shared deploy pipeline, shared control plane, shared DNS, the same bad config pushed everywhere) and an independent share. The composite is capped at roughly 1 − c·u, however many replicas you add. With 20% common mode, two 99.9% replicas give 99.98%, not 99.9999%. The regional outages of the last few years — us-east-1 in December 2021, where an internal-network impairment also degraded the tools used to observe and fix it, is the canonical example — are reminders that c is never zero, and usually larger than the redundancy design assumed. Chapter 3, How Large Systems Actually Fail, covers where correlation comes from.
Fan-out adds a latency version of the same problem. If a request touches N leaves and each is slow 1% of the time, the chance that at least one is slow is 1 − 0.99ᴺ: about 10% at N = 10 and 63% at N = 100 — the tail-at-scale effect Dean and Barroso described. A leaf p99 becomes the parent’s median at a fan-out of about 70. Two consequences for SLO design: leaf latency SLOs must be set at far higher percentiles than the parent’s, and hedged or tied requests are what let a parent SLO beat its leaves — at the cost of extra load that has to be budgeted.
Pitfall · inheriting a dependency's SLO
Burn rate B = error rate ÷ (1 − SLO); B = 1 lands the window exactly on target, and B = 14.4 against 30 days spends 2% of the budget per hour. Paging on burn rather than raw error rate makes the page proportional to consequence: 0.5% errors is an emergency against 99.99% and noise against 99%.
The SRE Workbook scheme — multiple thresholds, each over a long and a short window (page at 14.4× over 1h and 5m, page at 6× over 6h and 30m, ticket at 1× over 3d and 6h) — is well known. What is less appreciated is the division of labour: the long window decides when it fires; the short window, one twelfth of the long, exists almost entirely to make it stop, instead of paging for another half hour while the long average drains.
The long window decides when the alert fires (enough budget is at stake); the short window decides when it stops. Time to fire for a step of burn rate B is W·T/B — here 60 × 14.4 / 30 = 28.8 minutes.
The design has one property that is rarely spelled out. For a step change to burn rate B, a window W with threshold T fires after W·T/B. At that moment the budget spent is B × W·T/B ÷ period = W·T ÷ period, whatever B is. The 1h/14.4 tier always fires once 2% of the monthly budget is gone, the 6h/6 tier at 5%, the 3d/1 tier at 10%. You are not tuning sensitivity to error rate; you are choosing how much budget you are willing to lose before a human knows, per tier. That is the number to argue about in review, and it maps directly to the policy in the next section.
| error rate | burn B | page · 1h/5m · 14.4× | page · 6h/30m · 6× | ticket · 3d/6h · 1× | budget gone in |
|---|---|---|---|---|---|
| 100% | 1000× | 0.9m | 2.2m | 4.3m | 43m |
| 10% | 100× | 8.6m | 22m | 43m | 7.2h |
| 3% | 30× | 29m | 1.2h | 2.4h | 24.0h |
| 1% | 10× | never | 3.6h | 7.2h | 3.0d |
| 0.5% | 5× | never | never | 14.4h | 6.0d |
| 0.2% | 2× | never | never | 36.0h | 15.0d |
page · 1h/5m · 14.4×
budget spent when it fires: 2%, whatever the error rate
page · 6h/30m · 6×
budget spent when it fires: 5%, whatever the error rate
ticket · 3d/6h · 1×
budget spent when it fires: 10%, whatever the error rate
The matrix also shows where this breaks. At an error rate of 0.2% (burn 2) the budget is gone in 15 days, and the only thing that notices is a ticket after 36 hours — which is fine if someone works tickets, and a slow-motion SLO miss if not. At low traffic the maths becomes noise. A service doing 50 requests per 5 minutes (600 an hour) against 99.9% needs only nine failed requests in an hour to page — one client with a bad token retrying will do it — and a single failure puts the 5-minute window over threshold on its own. Guard low-volume SLIs with a minimum event count in the alert expression, fold them into a larger journey SLI, or add synthetic traffic so the denominator exists. Do not respond by widening windows until the alert is useless.
The more dangerous gaps are in the alerting path, not the thresholds. A burn-rate rule is a ratio of two time series computed by a pipeline — scrape, recording rule, aggregation, evaluation — and each stage has a failure mode that turns an outage into silence. They share one uncomfortable property: they get worse as the outage gets bigger. Aggregation is the one that bites even when every stage works. Evaluate burn on a global ratio and a failure confined to one region or cell is diluted by the healthy remainder; the region above burns at 20× and pages in 43 minutes if evaluated alone, while the global rule opens a ticket the next morning. Evaluate per region or per cell, with the minimum-event guard from above, and page on the worst one. The number of rules grows with the number of cells, but the number of pages does not.
The first two are the collapsing denominator again, now inside the alert expression: the worse the outage, the less data the rule has. Any SLO alert stack needs a second, independent signal that fires on the absence of data, not the value of it.
Architect's note · delete the cause-based pages
The error budget only changes behaviour if it is attached to a policy that says, in advance, what happens at each level of spend — and if the people who own the roadmap signed it. The failure mode is familiar. The budget runs out, engineering proposes a freeze, product points to a launch commitment made to a customer, and the freeze turns into a negotiation that engineering loses. The policy exists to settle that argument before it happens, when nobody has a launch at stake. It needs a product signature for exactly that reason: a policy written only by engineering is advice.
Dependency burn
counted against you, but the freeze applies to the path that can fix it — often the integration, not your feature work
Single big spend
any one incident above a set share of budget triggers a mandatory review, regardless of remaining balance
Silver bullet
a small, capped allowance of exceptions per quarter, spent by the product owner in writing
Four clauses separate a policy that holds from one that does not. Dependency burn: when a dependency spends your budget, it still counts, because users do not care whose fault it was — but the freeze applies to the work that can reduce the exposure (a cache, a fallback, a timeout), not to unrelated features. Excluding dependency burn teaches teams that SLOs are about blame, and the numbers stop meaning anything to users. Single large spend: any one incident that consumes more than a set share of the budget triggers a review whatever the balance; the Workbook’s example policy uses 20% over four weeks. Exceptions: allow a small number, capped, spent in writing by a named product owner — a formal escape valve prevents the informal one. Sustained misses: two windows in a row out of budget is not an engineering problem any more. It goes to someone who can add headcount, fund a re-architecture, or formally lower the target.
The policy also has to pick a window shape, and both shapes distort behaviour. A calendar month resets on the 1st: a team that burned 90% on the 3rd freezes for four weeks, and one with budget left on the 28th has an incentive to push risky changes before it expires. A rolling 30-day window removes the cliff but creates a memory: a single 25-minute full outage at 99.95% (more than the whole 21.6-minute budget of a 30-day window) keeps the service frozen for exactly 30 days and then releases it in one step, whether or not anything was fixed. The practical fix is to key the freeze exit to the remediation items from the incident, not to the budget line recrossing zero — the budget decides when a freeze starts, the postmortem decides when it ends.
How the freeze ends matters as much as when. A blanket freeze does not remove change; it queues it. Branches keep moving, and on thaw day four weeks of diffs land against a codebase and a fleet that have drifted underneath them. Failure risk grows with batch size and with how long a change sat unmerged, so the week after a freeze is predictably the riskiest week of the quarter — and its incidents spend the freshly recovered budget, which re-triggers the freeze. That oscillation is the signature of a policy written as a switch. Three design choices damp it. Scope the freeze by risk class: stop config pushes, schema migrations and dependency upgrades on the burning path, but keep small, flag-guarded feature changes flowing. Throttle rather than stop: tie the deploy rate or the canary bake time to remaining budget, so the policy is a dial with several positions. And thaw in waves, with a cap on deploys per day, so the backlog drains at normal batch size.
Lowering the target is a legitimate outcome, and teams that refuse to consider it end up with an SLO that has been red for a year and is therefore ignored. The budget is a price signal. If the organisation would rather ship features at 99.8% than fund the work to get 99.9%, that is a valid business decision — as long as it is made explicitly, recorded, and reflected in what sales and the SLA promise.
Pitfall · SLOs in performance reviews
Fleet-wide SLOs average away the customers most likely to leave. In a multi-tenant system, failures cluster: one shard, one cell, one noisy neighbour, one tenant with an unusual access pattern. A tenant that is 2% of traffic can be at 97% for a week and move the fleet SLI by hundredths of a percent. If your largest contracts are with a few enterprise tenants, the SLI that predicts churn is per-tenant attainment, reported as a distribution — the worst decile of tenants, or the number of tenants below target — not the fleet mean. Per-tenant SLIs are a cardinality question, so compute them from logs or wide events rather than labelled metrics; chapter 2, Observability Architecture & Economics, covers the cost side.
Per-tenant SLIs bring a statistics problem that fleet SLIs hide. Take a tenant doing 2,000 requests a day whose true availability is 99.95% — expected one failure a day. Failures are roughly Poisson, so the chance of three or more on a given day, which reads as below 99.9%, is about 8%. With 1,000 such tenants, around 80 perfectly healthy ones “breach” every day, and the one that is genuinely broken is in that pile. Count a tenant as breaching only when the upper bound of a confidence interval (Wilson or a Beta posterior) sits below target, lengthen per-tenant windows until the typical tenant expects tens of failures per window, and rank by budget consumed rather than by attainment, so large tenants with real problems surface ahead of small ones with bad luck.
Data systems need different SLIs, because “the request succeeded” is not the question. For pipelines, the three that matter are freshness (age of the newest data a consumer can query, measured at the consumer), completeness (records landed ÷ records produced, reconciled against source counts) and correctness (fraction of outputs that pass invariant checks, or that match a slow reference computation on a sample). Freshness is the one teams usually get wrong: measuring job completion time says nothing about a job that completed on time on stale input because an upstream CDC connector stalled. Put the freshness probe at the reading end, not in the scheduler.
Finally, treat the SLO set as a product with its own lifecycle. A quarterly review per service should ask four questions. Did the SLI move when users were hurt? Pull the incidents and support-ticket spikes and check that each one shows up. Did any page fire without user impact? Was the budget spent deliberately or by accident? Does the target still match what we sell? SLIs that failed to register a real incident get redefined; targets that were never at risk get tightened or dropped. An SLO that has not changed in two years is almost certainly measuring a system that no longer exists.
Design review · questions to ask of any SLO proposal
2% / 5% / 10%
budget at fire, 3 tiers
1 − c·u
redundancy ceiling
0.999⁸
≈ 99.2% · 8 hard deps
W · T / B
time to fire
Where next