Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Learn
Start
Guides
Domain packs
Participants
Security and privacy
Pilot kits
Operations
Ecosystem

Error-budget policy

Source docs/ops/error-budget-policy.md

On this page
  1. Budget
  2. Alerts and who acts
  3. Budget states and what changes
  4. Exclusions
  5. Review

What an operator of an Observatory Protocol deployment does as the error budget of an objective is spent. The objectives are in slos.yaml and explained in slo.md; this policy is a proposal for the owner to confirm together with them (OD-08). It applies to an operator’s deployment, not to the protocol, and the reference programs of this repository make no promise against it.

Budget

Each objective has a target over a rolling 30-day window; the budget is 1 - target of the window’s events (for availability and freshness, of the window’s minutes):

Objective Target Budget in 30 days
SLO-AVAIL 99.5% of probes succeed 0.5% of probes, about 3.6 hours of failed probing
SLO-INGEST 99% of replay batches within 0.5 s 1% of batches slower than 0.5 s
SLO-CORRECTION 99% of corrections visible everywhere within 60 s 1% of corrections slower than 60 s or lost
SLO-VERIFY 99.9% of intake and verification requests without a 5xx 0.1% of those requests
SLO-LOG-FRESH 99.9% of minutes with a signed tree head under 300 s old about 43 minutes

The remaining budget is the recording rule obsp:slo_error_budget_remaining:ratio{slo} (1 is untouched, 0 is spent, negative is overspent), shown on the SLO dashboard.

Alerts and who acts

Multi-window, multi-burn-rate alerts (generated into slo.rules.yml): an alert fires only when the error ratio exceeds the burn threshold over a long and a short window at once, so it fires fast for a sharp burn and clears soon after the burn stops.

Burn rate Long / short window Budget spent at that rate Severity Response
14.4x 1 h / 5 min 2% in one hour page the on-call operator acknowledges within 15 minutes and follows the runbook
6x 6 h / 30 min 5% in six hours page the same
3x 1 d / 2 h 10% in one day ticket handled within the next working day
1x 3 d / 6 h 10% in three days ticket reviewed at the weekly operations review

A page silences the ticket alerts of the same objective (alert manager inhibition). The reference stack’s alert manager has no receivers that leave the host; an operator wires pages and tickets to their own tools.

Budget states and what changes

Remaining budget (30 days) State Changes
more than 50% healthy releases and experiments proceed normally; game days may run in production-like environments
50% to 25% caution every release names its rollback (rollback.md); chaos experiments run against staging only
25% to 0% at risk releases limited to fixes for the objective at risk and security fixes; capacity changes reviewed (capacity-scaling.md); the owner of the objective reports daily
spent (0% or below) frozen no release except one that restores the objective or fixes a security issue, until the budget is positive again over the last 7 days; a post-incident review within five working days (incident-response.md)

Security fixes are never held back by a budget. A freeze is lifted by the deployment’s owner, who records why.

Exclusions

Not counted against a budget: announced maintenance windows (the prober’s targets are marked down for the window and the time is removed from the window’s events), failures caused by a client sending invalid requests (they are 4xx and outside SLO-VERIFY by definition), and a dependency outside the operator’s control when the operator’s runbook says so in advance. Every exclusion is recorded with its reason in the post-incident review.

Review

The objectives, thresholds and this policy are reviewed every quarter, and after every freeze, against the measured indicators: an objective never at risk may be tightened; one frozen twice in a quarter is either resourced or loosened by a reviewed change to slos.yaml (which regenerates the alerts and dashboards).