The checkout API has an availability SLO of 99.9% over a rolling 30 days. Two weeks into the window a bad config push fails 50% of requests for 20 minutes before it is rolled back. Your product manager turns to you: what is the error budget, and what did that incident just do to it?
- The budget is per incident: a 20-minute incident is one budget event, and it resets when the incident is closed. The budget is a fraction of all events over a rolling window; incidents spend it in proportion to failed requests, and nothing resets until the window rolls forward.
- The budget is (1 − SLO) × the window: 0.1% of requests, or 43.2 minutes of full outage per 30 days, and every failed request spends it, whether it comes from an incident or from a risky change. Half of requests failing for 20 minutes is 10 minutes of full-outage-equivalent budget gone (at a steady request rate), about 23% of the month, so how much remains, not the calendar, decides how aggressive the next change can be. An error budget is the allowed failure fraction over the window, expressed in requests or in outage-equivalent minutes; partial failures spend it in proportion.
- Planned changes are exempt: the budget is for unplanned incidents, so a deploy-caused error burst is not counted against the SLO. Users cannot tell a deploy from an outage; the budget exists precisely to price the risk of change, and deploy-caused bursts are usually its largest consumer.
- Only full outages spend budget. At 50% errors the service was still up, so this incident cost nothing. Availability SLIs count failed requests, not wall-clock downtime; 50% errors for 20 minutes costs the same budget as 100% errors for 10.
The budget is 1 minus the SLO over the window, and every failed request spends it: 50% errors for 20 minutes cost 10 minutes of budget.
Error budget = 1 − SLO, applied to the window's events: for 99.9% over 30 days (43,200 minutes) that is 0.1% of requests, or 43.2 minutes of full outage, spent as full-outage minutes, as failed requests, or any mixture. It is spent by whatever makes requests fail (outages, partial degradations, canaries gone wrong, migrations), which is what makes it the shared currency between shipping features and doing reliability work. Convert incidents to full-outage-equivalent minutes (error fraction × duration) to compare them: 0.5 × 20 = 10 minutes, about 23% of the 43.2-minute budget, two weeks in. The policy for what happens when the budget runs low is agreed with product in calm, so the conversation during a burn is about executing it, not negotiating it.
Treating a partial outage as free because 'the service was up', or exempting deploy-caused errors. 50% errors for 20 minutes is 10 minutes of budget, and deploys are usually the budget's largest consumer.