Glossary termConcept

Service Level Objective

Also known as: SLO

Target value for a measured aspect of a service's performance, such as availability or latency, that a team commits to meeting over a set period.

A service level objective (SLO) is a reliability target expressed as a number. It is defined in terms of a service level indicator (SLI), a carefully chosen measurement of user experience such as the proportion of requests that succeed or that complete within 300 milliseconds. The SLO sets the goal for that indicator over a time window, for example 99.9 percent of requests succeeding over 28 days. SLOs are central to site reliability engineering, where they make the vague goal of being reliable concrete enough to plan, measure and debate.

SLOs differ from service level agreements (SLAs), which are contracts with customers that specify consequences, often financial credits, if a level of service is not met. An SLO is an internal objective and is normally set tighter than any related SLA, giving a team warning before contractual commitments are at risk. Choosing an SLO is partly a product decision: the target should reflect what users actually notice and need. Aiming for 100 percent is generally considered a mistake, since it is unachievable in practice and would leave no room for change.

The difference between an SLO and perfection defines an error budget, the amount of unreliability a team may accept in a period. SLOs also guide alerting: well-designed alerts fire when users are affected or the budget is being consumed too quickly, rather than whenever an internal metric looks unusual. Good SLOs depend on solid observability and on measuring from the user's perspective, which may mean measuring at the load balancer or the client rather than inside each server. Poorly chosen SLOs can encourage teams to optimize the measure rather than real experience, an instance of Goodhart's law.

Key points

  • An SLO sets a target for a service level indicator, such as success rate or latency, over a time window.
  • SLAs are external contracts with penalties; SLOs are internal targets usually set more strictly.
  • A 100 percent reliability target is unrealistic and leaves no room for releasing changes.
  • Alerting on how fast an SLO is being missed focuses attention on problems that actually affect users.

Related entries

Glossary term

Amount of unreliability a service may tolerate in a period, defined as the gap between its service level objective and perfect reliability.

Glossary term

Discipline that applies software engineering to IT operations, using automation and measurable reliability targets to run large-scale systems.

Glossary term

Degree to which a system's internal state can be inferred from its outputs, and the practices and tools that make software systems understandable.

Glossary term

Design goal and set of techniques for keeping a system operational and accessible for an agreed, very high proportion of time.

Glossary term

Latency

DevOpsHardware

Time delay between a cause and its effect in a system, such as between sending a request and receiving the first part of the response.

Glossary term

Goodhart's Law

Ideas and CultureAI

Principle that a metric used as a target tends to lose its value as a measure, because people optimize for the number rather than the goal.

Featured in guides

Referenced by

Other entries that discuss or point to Service Level Objective.