Lesson 2 of 9 · 27m
Error Budget Policy and Burn Rate Without the Hand-Waving
Calculate the budget, understand burn-rate math, and write a policy that specifies actions before the next incident does it for you.
Error budgets are often introduced as permission to fail. That is too shallow. The budget is a decision mechanism: it tells you how much unreliability you can afford while pursuing change, and it gives the organization a pre-negotiated answer when reliability and feature velocity collide. The collision is guaranteed. The pre-negotiation is optional.
The math is simple; the meaning is not
For a 99.9% SLO over 28 days, the failure allowance is:
error budget fraction = 1 - 0.999 = 0.001 = 0.1%
valid requests in window 50,000,000
allowed bad requests 50,000Burn rate compares pain with allowance
Burn rate is the observed error ratio divided by the allowed error ratio:
burn rate = current error rate / budgeted error rateA burn rate of 1 consumes the budget exactly as fast as the SLO permits. A burn rate of 14.4 consumes a 30-day budget in about two days. This is why burn-rate alerts beat raw error-count alerts: they scale with traffic and connect directly to the objective.
Use fast and slow windows together
A single alert either pages too late or pages for noise. Multi-window alerting catches both crises and slow leaks:
groups:
- name: checkout-error-budget
rules:
- alert: CheckoutFastBurn
expr: checkout:error_ratio_rate1h > 14.4 * 0.001 and checkout:error_ratio_rate5m > 14.4 * 0.001
for: 2m
- alert: CheckoutSlowBurn
expr: checkout:error_ratio_rate6h > 6 * 0.001 and checkout:error_ratio_rate30m > 6 * 0.001
for: 1hWrite the policy before you need it
A usable error budget policy names triggers and consequences:
Budget remaining > 50%: normal release process.
Budget remaining 20-50%: reliability review for risky launches.
Budget remaining < 20%: pause nonessential risky rollout; staff mitigation.
Budget exhausted: feature work yields to reliability work until recovery.
Exception: documented security, legal, or incident-response changes."Pause releases" does not mean stopping all work. Documentation, low-risk fixes, security patches, and reliability improvements continue. The policy restricts risk concentration, not human activity.
Field notes
- Do not reset rolling budgets after an incident. The budget is memory; resetting it is organizational amnesia.
- If burn-rate alerts fire during every deploy, either deployment technique is unsafe or the measurement counts expected behavior incorrectly.
- Budget policy must name who can grant exceptions. "The team" is not a decision-maker during a crisis.
- A budget that never gets spent may mean the target is too loose or the team is under-investing in speed.
Was this lesson helpful?