Articles

What Is an Error Budget? SLOs Turned Into a Policy

An error budget is the unreliability an SLO allows, such as 0.1% of requests for a 99.9% target. How to calculate it, track burn rate, and act on it.

Chisato Chisato · · 5 min read
Server racks with networking cables

An error budget is the amount of unreliability a service is allowed over a period, defined as 100% minus its service level objective. A service with a 99.9% availability SLO over 30 days has an error budget of 0.1%: about 43 minutes of downtime, or one failed request in every thousand. The budget turns reliability from a vague goal into a shared number that tells a team when it can ship freely and when it has to slow down and fix things.

From SLO to error budget

Error budgets build on three related terms, covered in detail in SLA vs SLO vs SLI:

  • An SLI (service level indicator) is a measurement, such as the fraction of requests that succeed or complete under 300 milliseconds.
  • An SLO (service level objective) is the target for that measurement over a window, such as 99.9% of requests succeeding over 30 days.
  • The error budget is what is left over: the failures the SLO permits.

The key idea is that 100% is the wrong target. Users cannot tell the difference between 99.99% and 100% when their own network, device, and the other services they depend on are less reliable than that. Chasing perfection means shipping less, spending heavily on redundancy, and still failing occasionally. An error budget makes the acceptable amount of failure explicit, so it can be spent deliberately.

How to calculate an error budget

For a request-based SLO, the math is direct:

error budget = (1 - SLO) x total requests in the window

If a service handles 50 million requests in 30 days with a 99.9% SLO, it can fail 50,000 of them. For time-based availability, convert to minutes:

SLOAllowed unavailability per 30 daysPer year
99%about 7.2 hoursabout 3.65 days
99.5%about 3.6 hoursabout 1.8 days
99.9%about 43 minutesabout 8.8 hours
99.95%about 22 minutesabout 4.4 hours
99.99%about 4.3 minutesabout 53 minutes

Each additional nine cuts the budget by a factor of ten. That is why the jump from 99.9% to 99.99% is far more expensive than it looks: a single slow deploy or a failover that takes a few minutes can consume the whole month.

Request-based budgets are usually more meaningful than clock-based ones. An outage at 3 a.m. with little traffic burns less budget than a partial failure during peak hours, which matches how much users were actually affected.

What spending the budget looks like

Anything that causes SLI failures draws down the budget:

  • Bad deploys and configuration changes
  • Infrastructure failures and dependency outages
  • Planned maintenance that drops requests
  • Latency regressions, if the SLI includes a latency threshold
  • Load spikes the system cannot absorb

That last category is important. The budget is not only for unexpected failures. It is also what pays for risk: experiments, migrations, aggressive release schedules, and new features. A team that never touches its budget may be over-investing in reliability at the expense of velocity.

Burn rate: how fast the budget is going

Remaining budget tells you where you stand; burn rate tells you how quickly things are changing. A burn rate of 1 means you are consuming the budget at exactly the pace that would use it up by the end of the window. A burn rate of 10 means you would exhaust a 30-day budget in three days.

Burn rate makes for better alerts than raw error thresholds. Common practice is to alert on a combination of windows:

  • Fast burn: a high burn rate over a short window, such as an hour, pages someone immediately because a serious incident is underway.
  • Slow burn: a moderate burn rate over a longer window, such as several days, opens a ticket because a persistent low-grade problem will exhaust the budget if left alone.

Requiring both a long and a short window to be elevated before alerting cuts down on noise from brief blips while still catching real problems quickly.

The error budget policy

A budget only changes behavior if the team agrees in advance what happens when it runs low. That agreement is the error budget policy, and it is the part most often skipped. A typical policy says:

  • Budget remaining: ship features at the normal pace. Risky launches are acceptable.
  • Budget low: require extra review for risky changes, slow the release cadence, prioritize reliability bugs.
  • Budget exhausted: freeze non-critical feature releases until the service is back within its SLO, and dedicate engineering time to the causes of the burn.

The policy should be agreed between engineering, product, and whoever owns the service’s priorities, before it is needed. Negotiating a feature freeze in the middle of a bad month rarely goes well. With a policy in place, the decision is mechanical rather than political.

Practices that make the budget last longer

Several deployment and operational practices reduce how much budget each change costs:

  • Progressive rollouts. Releasing to a small slice of traffic first limits the blast radius of a bad change. See blue-green vs canary deployments.
  • Feature flags. Decoupling deploy from release means a broken feature can be turned off without a rollback. Our feature flags explainer covers the pattern.
  • Fast rollback. The quicker you can revert, the less budget an incident consumes.
  • Learning from incidents. Blameless postmortems after significant budget burns turn spent budget into fixes rather than repeat failures.

Common pitfalls

Setting SLOs too high. An SLO above what the system has historically delivered means the budget is always exhausted, the policy is always in effect, and people stop taking it seriously. Start near current performance and tighten later.

Measuring the wrong thing. An SLI based on server-side health checks can look perfect while users see errors from a broken load balancer or CDN. Measure as close to the user as practical.

Too many SLOs. A handful of SLOs that reflect what users care about, typically availability and latency for key journeys, beats dozens that nobody watches.

Treating unused budget as a target to hit. The budget is permission to take risk, not a quota to burn. Spending it on careless deploys is not the point.

Error budgets are a core practice of site reliability engineering, but the idea works in any team that runs a production service and has to balance reliability against shipping.

The takeaway

An error budget is 100% minus the SLO: the failures a service is allowed in a window. Calculate it from request counts where possible, alert on burn rate rather than raw errors, and write down a policy for what changes when the budget runs low. Done well, it replaces arguments about whether to ship with a number everyone already agreed to.

Chisato Chisato · · 4 min read

What Is a Cloud Landing Zone?

A cloud landing zone is a pre-configured, secure baseline environment for provisioning new cloud accounts and workloads at scale. How it works.

#Cloud #DevOps #Infrastructure