A team's status page shows "Uptime: 100%" for the quarter, measured by a probe that loads the home page every minute. Leadership makes it the goal for next quarter. Every incident now triggers a release freeze, deploys move to Sunday nights, and a database upgrade waits for months. Meanwhile, support forwards complaints about failed payments that never show up on the uptime chart: the home page kept loading the whole time.
The common misconception
The belief: the reliability goal for any service should be 100% uptime. Anything lower is planning to fail, and a professional team doesn't plan to fail.
It's a reasonable instinct. Outages are painful, public and expensive, and the SRE book itself warns that "unreliable systems can quickly erode users' confidence." Contracts and status pages talk in nines, so more nines sounds like more quality. And nobody wants to stand in front of customers and say "we plan to fail".
The half-truth: reliability matters enormously, and you should know exactly how reliable you are. But 100% is neither reachable nor useful as a target, and chasing it costs you what users actually value.
What actually happens
Past a point, users can't see the extra nines
Google's SRE book puts it bluntly: "a user on a 99% reliable smartphone cannot tell the difference between 99.99% and 99.999% service reliability!" The user's network, device and everything in between fail more often than your extra nine would. Meanwhile the cost isn't linear: "an incremental improvement in reliability may cost 100x more than the previous increment." So the book treats an availability target "as both a minimum and a maximum": exceeding it by a lot wastes chances to ship features, pay down debt or cut costs.
100% leaves no room for change
The SRE workbook adds the other half: "The number one source of outages is change." New features, security patches, hardware and scaling all put a 100% target at risk, so "an SLO of 100% means you only have time to be reactive." A team that truly holds 100% can never update its service.
SLI, SLO and error budget
A is "a carefully defined quantitative measure of some aspect of the level of service that is provided." The workbook recommends writing it as a ratio: "the number of good events divided by the total number of events", such as successful HTTP requests over all requests. A is "a target value or range of values for a service level that is measured by an SLI." For latency SLIs, the target is a , for the reasons in our article on average latency.
The follows directly: it's "100% minus the SLO." The workbook's example: with a 99.9% success SLO and 3 million requests in four weeks, the budget is 3,000 errors, and an outage that causes 1,500 of them "costs 50% of the error budget."
The budget is a decision tool
In the SRE book's practice, "as long as there is error budget remaining", new releases can be pushed. When it's spent, "releases are temporarily halted" while effort goes into reliability. The speed of spending matters too. Burn rate is "how fast, relative to the SLO, the service consumes the error budget": a burn rate of 1 leaves "exactly 0 budget at the end of the SLO's time window." That turns alerting from "any error" into "the budget will run out soon".
The arithmetic in code
Here's the same release gate twice: once with a 100% target, once with an SLO.
C# · ReleaseGate.cs
public class ReleaseGate{ const decimal Target = 1.0m; // "100% uptime" // One failed request closes the gate public bool CanDeploy(long good, long valid) => good >= Target * valid; // (1 - 1.0) x anything = no room for a single error public decimal AllowedErrors(long valid) => (1 - Target) * valid;}// 3,000,000 requests, 1 failed:// CanDeploy = False, AllowedErrors = 0.0
C# · ErrorBudget.cs
public record Slo(decimal Target, int WindowDays); // e.g. 0.999 over 30 dayspublic static class ErrorBudget{ // Errors the SLO allows in the window: (1 - target) x valid events public static decimal Allowed(Slo slo, long valid) => (1 - slo.Target) * valid; // Share of the budget left: 1 = untouched, 0 or less = spent public static decimal Remaining(Slo slo, long good, long valid) => 1 - (valid - good) / Allowed(slo, valid); // How fast errors spend it: 1 = the budget lasts exactly the window public static decimal BurnRate(Slo slo, long errors, long requests) => (decimal)errors / requests / (1 - slo.Target);}// new Slo(0.999m, 30), 3,000,000 requests, 1,500 failed:// Allowed = 3000.000, Remaining = 0.5// Last hour, 144 failed of 10,000: BurnRate = 14.4
The output comments come from running both on .NET 10. In the first tab, a single failed request out of three million closes the gate, and the budget is zero by construction, so every release competes with a target it can only lose. decimal keeps the arithmetic exact; with double, 1 - 0.999 isn't exactly 0.001. In the second tab, the same window with 1,500 errors leaves half the budget, and the team keeps shipping. A burn rate of 14.4 over one hour is the workbook's suggested paging threshold for a 30-day window: it means 2% of the whole budget went in that hour.
"100% uptime"
SLO with an error budget
What's measured
Whether a probe gets an answer
Good events over valid events, as users see them
Failures allowed
None
(1 − SLO) × valid events in the window
One failed request
A breach
A known, small share of the budget
Releases
Every deploy is a risk you can't afford
Ship while budget remains; slow down when it's gone
Alerts
On any error
On burn rate: how fast the budget is going
How to apply it in your project
Pick one or two SLIs users would recognizeStart with the success ratio and the latency of your most important requests, measured where users meet the service, such as the load balancer, not by a probe on the home page.
Set the first SLO from your dataLook at the last four weeks; the workbook calls a four-week rolling window "a good general-purpose interval". Set the target near what you already achieve, so it describes reality before you try to change it.
Write an error budget policyState what changes when the budget is spent: for example, only fixes and reliability work ship until it recovers. The workbook suggests the approval itself is "a good test for whether the SLOs are fit for purpose".
Alert on burn rateThe workbook recommends paging at 2% of the budget spent in one hour or 5% in six hours, and a ticket at 10% in three days. Single errors stop waking people up; fast budget loss still does.
Key takeaways
100% is the wrong target: users can't see the extra nines, each one costs far more, and it forbids change.
An SLI is good events over valid events; an SLO is the target for it over a window, below 100%.
The error budget is 100% minus the SLO, times your traffic: the failure you can afford to spend.
Use the budget to decide: ship while it lasts, focus on reliability when it's gone, and alert on burn rate.
Without a written, agreed policy, an SLO is just another number on a dashboard.
التعليقات (0)