Video in progress

A service's error budget ran out in the middle of the month. How should the release policy change, and how do you put that in place?

When the error budget runs out, feature releases stop or are strictly limited and the team switches to reliability work; only fixes and security patches go out. This policy must be agreed in writing with the product owner in advance, otherwise it will not work.

📖 Answer

With a 99.9% SLO, there is about 43 minutes a month of "allowed" breakage. That is the budget: we "spend" it on the risk of new features. If the budget is gone, users are already getting worse service than agreed.

A sample policy (signed by the team and the product owner):

Budget remaining Releases
> 50% the usual process
10-50% only with a canary, high-risk changes are postponed
< 10% or exhausted only fixes, rollbacks and security; part of the sprint goes to reliability

Putting it in place:

  1. SLOs must be real: things the user notices, such as the share of successful requests and p99 latency. CPU or "is the pod alive" is not an SLO.
  2. Burn rate alerts: alert on how fast the budget is burning (for example, a page if 2% burns in 1 hour). That is better than finding out at the end that it is gone.
  3. Wire it into the pipeline: the deploy gate checks the SLO state, so if the budget is exhausted, releases labeled feature are blocked and those labeled fix go through. A policy that is not automated gets forgotten at the first sign of pressure.
  4. Exceptions: if a business-critical release is needed, who approves it, in writing. If there are many exceptions, the SLO was chosen wrongly.

Subtle points: if the budget burns because of a dependency (a shared DB or an external payment provider, say), punishing the team is unfair. You need to split SLOs by dependency, or have a rule for excluding such incidents.

And the opposite case: if the budget always stays at 95%, the team is too cautious and can release faster.