Field notes on reliability targets, written for the engineer who has just been told “the checkout service must be highly available” and wants to know what that means on a Monday morning.

Three terms, kept apart

  • SLI (service level indicator): a measurement. “The fraction of checkout requests that returned success in under 800 ms.”
  • SLO (objective): an internal target for that measurement over a window. “99.9 percent, over 30 days.”
  • SLA (agreement): a contract with a customer, with consequences, usually service credits, if you miss. It should be looser than your SLO, so you notice trouble before you owe money.

People blur these constantly. Do not. A dashboard of CPU usage is not an SLI. An SLI describes what a user experiences.

Choose indicators users would recognise

For a request-driven service, two cover most cases: availability (good responses divided by valid requests) and latency (requests faster than a threshold divided by all requests). Define “good” carefully. A 500 is bad. A 404 for a mistyped URL is arguably the user’s problem, not yours. A 200 that carries an error message in the body is bad, though your load balancer will call it good. Measure as close to the user as practical, at the load balancer or in the client, not inside the app where a crash looks like silence.

Opinion: use percentile-based latency thresholds, not averages. An average hides the slowest one percent, who are often your highest-value customers with the biggest baskets.

Turn the target into a budget

If the SLO is 99.9 percent, then 0.1 percent of the time or requests may fail. That allowance is the error budget. Two ways to read it, both verified by arithmetic:

  • By time: a 30-day month has 43,200 minutes. 0.1 percent of that is 43.2 minutes of full outage. At 99.99 percent it is 4.32 minutes. At 99 percent it is 432 minutes, or 7.2 hours.
  • By requests: if the service takes 10 million requests in the month, 99.9 percent allows 10,000 bad ones. This version is usually better, because an outage at 3 a.m. and one at the festival-sale peak are not equally harmful, and counting requests weights them properly.

Each extra nine cuts the budget tenfold and roughly multiplies cost and effort. Going from 99.9 to 99.99 percent is not a tweak; it usually means multi-zone redundancy, automated failover and release practices that never take everything down at once. And remember the dependency arithmetic: if your service depends serially on three components each at 99.9 percent, the best you can offer is about 99.7 percent.

Why 100 percent is the wrong target

Nobody can deliver it, and users cannot perceive it either: their phone network, Wi-Fi and the bank’s own gateway fail far more often than your service. Chasing perfection makes every release terrifying, so you ship less and learn less. A target slightly below what users can notice is rational.

The budget as a decision rule

This is the real value, and the part teams skip. Agree in advance, with product and engineering together, what happens at different budget levels.

  • Budget healthy: ship features, run risky experiments, do the chaos test.
  • Budget nearly spent: slow down, require extra review, prioritise reliability work from the backlog.
  • Budget exhausted: freeze non-essential releases until the window recovers or the cause is fixed.

The argument “reliability versus features” stops being a shouting match. There is a number, agreed before the incident, that says which one wins this month. It only works if leadership honours it, though. A freeze that gets overridden the first time it is inconvenient teaches everyone that the SLO is decoration.

Alerting on burn rate

Paging when the error rate crosses 0.1 percent is noisy and late. Better: alert on how fast the budget is being consumed, the burn rate. Burn rate 1 means you will use exactly the whole budget by the end of the window. The Google SRE Workbook suggests pairing a long and a short window so you page quickly for a big problem but ignore blips. Its example: a burn rate of 14.4 sustained for one hour consumes 2 percent of a 30-day budget (14.4 hours out of 720), which deserves a page. A slow leak at burn rate 1 over three days deserves a ticket, not a 2 a.m. call.

A starting recipe

  1. Pick the one or two journeys that matter (search, add to cart, pay).
  2. Measure current performance for a month before choosing a target. An SLO far above what you achieve now is fantasy; far below is pointless.
  3. Set the SLO a little under demonstrated performance, then review quarterly.
  4. Write the budget policy down and get sign-off from the product owner.

One honest caveat: for low-traffic services, percentages are unstable. A few hundred requests a day means two failures swing the ratio visibly. Widen the window or use synthetic probes to generate steady signal.

Leave a Reply

Trending