Error Budget
Budget di errore
Un budget di errore è la quantità consentita di servizio cattivo durante una finestra SLO. Equivale alla parte sotto il 100%.
allowed bad events = (1 - SLO) × valid events; consumed share = bad events / allowed bad events1,000○consentito700−usato300✓rimanenteallowed bad events = (1 - SLO) × valid events; consumed share = bad events / allowed bad eventsSREUn altro esempio
Un servizio ha un SLO del 99,9% per un milione di richieste. Il budget permette 1.000 richieste errate. Dopo 700, ne restano 300.
Parti principali
- 01SLO collegato
- 02Finestra del budget
- 03Eventi cattivi consentiti
- 04quantità consumata
- 05Quantità rimanente
- 06politica di decisione del rilascio
Usalo quando
Usalo dopo che un team ha concordato su un SLO e una policy. Lascia che il budget rimanente guidi il lavoro di rilascio e affidabilità.
Non usarlo quando
Non considerare il budget come tempo di inattività programmato o una punizione. È un segnale condiviso per fare compromessi.
Nome usato nel codice
allowed bad events = (1 - SLO) × valid events; consumed share = bad events / allowed bad events Prima di spedire
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome: Complete the task with Budget di errore (Error Budget). User context: Un servizio ha un SLO del 99,9% per un milione di richieste. Il budget permette 1.000 richieste errate. Dopo 700, ne restano 300. Technical concept or control: Budget di errore (Error Budget). Why it fits: Usalo dopo che un team ha concordato su un SLO e una policy. Lascia che il budget rimanente guidi il lavoro di rilascio e affidabilità. Do not use it when: Non considerare il budget come tempo di inattività programmato o una punizione. È un segnale condiviso per fare compromessi. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): Nessun singolo standard ufficiale controlla l'intero termine. Il suo significato può cambiare tra team, piattaforme o framework. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
Controlla questa richiesta
Review how Budget di errore (Error Budget) is used now. Definition: Un budget di errore è la quantità consentita di servizio cattivo durante una finestra SLO. Equivale alla parte sotto il 100%. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.