Service level objectives, explained for people who run the business

A service level objective replaces the argument about reliability with a number the business has chosen. It states how much failure is acceptable, and the remainder, called the error budget, tells engineering when to ship and when to stop and fix.

By Nabil Ahmed8 minute read

The lunar surface near 23°N, 128°W, lit by a low Sun with night falling across one side.
The Moon near 23°N, 128°W. Rendered by Farside from NASA Lunar Reconnaissance Orbiter elevation data.

Most technology organizations have a version of the same dispute, in which product wants features released faster and operations wants fewer changes, because changes cause incidents. Each outage pushes the balance toward caution and each missed deadline pushes it back. It never ends, because neither side has a number stating how reliable the service is supposed to be.

Uptime, the number people usually reach for, does not settle it. A status page can show a service as available all month while customers spent much of that month watching a spinner, since servers answering a health check are a different thing from customers completing what they came to do.

A service level objective deals with both problems, because it measures reliability as a customer experiences it and sets a target that the business has agreed to. We think it is one of the few engineering practices an executive should understand in detail, since the target is a business decision. Engineers can tell you what each level costs, but only the business can decide which level is worth paying for.

In brief

  • A service level objective (SLO) is a target for how often a service does what its users need, measured over a fixed window such as 28 or 30 days.
  • The target should follow what users notice and what the business is prepared to pay for, because each step closer to perfect reliability costs more than the step before it.
  • The error budget is the amount of failure the target permits, and it gives product and engineering a single shared rule for when to release and when to concentrate on stability.
  • An SLO is an internal goal and differs from a service level agreement, which is a contractual promise with penalties and should always be looser than the internal goal.
  • A handful of SLOs on the customer journeys that matter is more useful than a dashboard of hundreds of technical metrics.

Four terms, in plain language

The vocabulary comes from site reliability engineering, the discipline Google described publicly in its book of that name, and is now in general use.

A service level indicator, or SLI, measures how a service behaves from the user's side, expressed as good events divided by all events. "The share of checkout requests that succeeded in under two seconds" is an SLI, whereas "CPU utilization" is not, because no customer experiences CPU utilization.

A service level objective is the target set for that indicator over a period, for example "Of all checkout requests in any 28-day window, 999 in every 1,000 succeed in under two seconds."

An error budget is the remainder, meaning the failures that the objective allows. Under the target above, one request in every 1,000 may fail or be slow, and that allowance is the budget, which is meant to be spent, whether on releases, experiments and maintenance or on the ordinary misfortunes of running software.

A service level agreement, or SLA, is a contractual commitment to a customer, with consequences such as service credits if it is missed. It should be set below the internal objective, so that engineering has been alerted and is acting well before any contractual breach.

Why perfect is the wrong target

The natural instinct is to say the service should never fail, and there are three reasons to resist it.

The first is that the cost curve is steep. Reliability targets are often quoted as a row of nines, and each additional nine cuts the allowed failure by a factor of ten. For a service measured by time, the arithmetic over a 30-day month works out as follows.

Target (good minutes) Allowed bad time in 30 days What it typically takes
99 in every 100 About 7 hours One well-run deployment, business-hours support
999 in every 1,000 About 43 minutes Redundancy across zones, automated rollback, round-the-clock on-call
9,999 in every 10,000 About 4 minutes Automated failover with no human in the loop, multi-region design for the critical path, very cautious releases

At the third level the monthly allowance leaves no time for a person to be paged, wake up, log in and diagnose the problem, so recovery has to be automatic. That requires a different architecture and a different budget, a connection we discuss in cloud cost is an architecture problem.

The second reason is that beyond a certain point users cannot perceive improvement, because their own connection and device fail now and then, as do other services in the chain, so reliability beyond what a user can notice is money spent for no visible return.

The third reason is that a service depending on others in sequence generally cannot be more reliable than they are unless it is designed to carry on without them. A target tighter than the payment provider's or the cloud region's is therefore a design commitment that takes caching, queues, fallbacks or a second provider to meet, which is workload architecture and has to be funded as such.

The useful question is therefore at what point a customer would change their behavior and what avoiding that is worth, and an internal reporting tool and a payment authorization service will get very different answers to it.

The error budget as a decision rule

The budget is what turns an SLO from a measurement into something management can use, because it converts the dispute about speed and stability into a rule that both sides agreed to in advance.

While budget remains, teams release at their usual pace and take sensible risks. As the budget nears exhaustion the priorities change, so that feature releases slow or stop and effort moves to the causes of the failures until the window rolls forward and the budget recovers. Neither side has to win an argument, because the policy was agreed at a calm moment before any incident.

Alerting follows the same logic. Engineers track the burn rate, which is how fast the budget is being used compared with an even pace across the window. A fast burn that would use up the month's budget within hours pages someone at once, while a slow burn that would use it up over weeks opens a ticket for working hours.

All of this depends on a written budget policy, signed by the product and engineering leads, that states what happens when the budget runs out. Without that policy an SLO produces a chart but does not change any decisions.

An insurer's quote service

Consider a regional insurer selling motor policies online and through brokers, where both channels call the same quote service. The operations dashboard shows the service as available nearly all the time, based on a health check that pings each server once a minute. Brokers, however, complain that quotes often hang on Monday mornings, and some have started quoting with a competitor first.

The health check and the brokers are both correct, because the servers are indeed up. Under Monday load a call to the rating engine slows down and requests queue behind it, so a share of quotes take twenty seconds or time out in the broker's browser, and none of the monitoring counts that as a failure.

The team therefore redefines reliability around the quote journey itself.

slo: quote-returned
service: motor-quote-api
indicator:
  good_events: responses with a valid priced quote, completed in under 3 seconds
  total_events: all quote requests, excluding those rejected for invalid input
  measured_at: the load balancer, not the application server
objective: 995 in every 1,000 requests
window: 28 days, rolling
alerts:
  page: budget burning fast enough to be gone within 2 days
  ticket: budget burning fast enough to be gone within the window
budget_policy:
  exhausted: feature releases to this service pause; reliability work takes priority
  owners: head of digital distribution, engineering lead

Several choices in that definition matter. The distribution team supplied the three-second threshold, since they know when a broker gives up waiting. Measuring at the load balancer picks up timeouts that the application never logs, and leaving out invalid requests keeps the indicator focused on how the service behaves. The target was set below the tightest one available, because the business judged that five slow or failed quotes in a thousand are tolerable and that paying for better is not yet justified.

On the first day of measurement the service is well outside its objective, and Mondays account for all of the shortfall. That result is useful, because the problem is now visible and sized and can be traced to the rating engine dependency, and the budget policy sends effort there ahead of the next feature. The intended improvement is measured in the same indicator and in the share of broker quotes that reach a priced result, which for insurance distribution is the figure the commercial team already follows.

Choosing where to set objectives

Begin with customer journeys and work back to the systems behind them. In most organizations the list of journeys that deserve an SLO is short, typically sign-in, search or quote, payment or submission, and whatever the core transaction is. Internal services that halt work when they fail, such as the warehouse scanning service or the nightly settlement run, belong on the list as well. For batch and data systems the indicator is usually freshness or completeness, for instance the share of days on which the report was correct and had arrived by eight in the morning.

The first target should come from evidence. Measure the indicator for a few weeks, look at what the service achieves today and ask whether users are satisfied at that level. If they are, set the objective near current performance and hold it there, and if they are not, set it where they would be and fund closing the gap as a separate piece of work.

Keep the number of objectives small, because a team with thirty SLOs has in effect no priorities. Two or three per service, each tied to something a user does, is usually enough.

Well-chosen objectives sharpen testing too, since a written target gives performance tests and resilience tests a clear pass mark, and that is how quality engineering and operations come to work from the same definition. Release practice benefits in the same way, as the safeguards described in a test strategy for systems that change every week are what stop frequent releases from using up the budget.

What SLOs will not do

An SLO will not make a service reliable, although it tells you whether the service is reliable and where the engineering effort should go.

SLOs also leave things out, since an indicator built on request success says nothing about a wrong answer delivered quickly, and correctness needs checks of its own.

They handle rare catastrophic events badly. A service can meet its objective for years and then lose a whole region for a day, which is why disaster recovery targets, covering how long restoration may take and how much data may be lost, are a separate discussion with separate tests.

They can also be gamed. When invalid requests are excluded, there is a temptation to classify more failures as invalid, so the definition of a good event should be reviewed by someone outside the team whose performance it measures.

What to do next

For an executive who sponsors a customer-facing service, these questions are a reasonable start.

  • Ask which three customer journeys matter most, and whether each one has an indicator measured from the customer's side.
  • Ask what the current target is and who chose it, and when the business last confirmed it.
  • Ask to see how much error budget was used in each of the last three months, and what it was used on.
  • Ask whether a written policy states what happens when the budget is exhausted, and whether product leadership has signed it.
  • Compare the internal objective with any contractual SLA, and check that the internal one is tighter.
  • Ask what the next level of reliability would cost in design changes and running cost, and decide deliberately whether to buy it.

If none of this exists yet, the first step is a small one: choose one journey and define one indicator for it, then measure it for a month and review the result together. Setting up measurement and alerting, along with a review cadence, is part of cloud operations and reliability work, and the review itself belongs in the regular rhythm of technology operations, while the decision about the target remains yours.

Related services

Start a conversation.

A short paragraph is enough. A principal reads every message and replies within one working day.

Or email hello@farside.works. We use what you send only to reply. Privacy