Error Budget
エラーバジェット
エラーバジェットは、SLOウィンドウ中に許容されるサービス低下の量です。これは100%未満の部分に相当します。
allowed bad events = (1 - SLO) × valid events; consumed share = bad events / allowed bad events1,000○許可された700−使用済み300✓残りallowed bad events = (1 - SLO) × valid events; consumed share = bad events / allowed bad eventsSREもう一つの例
サービスは100万件のリクエストに対して99.9%のSLOを持っています。予算では1,000件の不良リクエストが許可されています。700件使用した後、残りは300件です。
主な部分
- 01関連SLO
- 02予算ウィンドウ
- 03許可された悪い事象
- 04消費量
- 05残額
- 06リリース決定ポリシー
以下の場合に使用します
チームがSLOとポリシーに合意した後に使用してください。残りの予算をリリースや信頼性の作業に役立てましょう。
以下の場合は使用しないでください
予算を計画的なダウンタイムや罰として扱わないでください。それはトレードオフを行うための共有のシグナルです。
コードで使用する名前
allowed bad events = (1 - SLO) × valid events; consumed share = bad events / allowed bad events 出荷前に
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 エラーバジェット (Error Budget)。 User context:サービスは100万件のリクエストに対して99.9%のSLOを持っています。予算では1,000件の不良リクエストが許可されています。700件使用した後、残りは300件です。 Technical concept or control:エラーバジェット (Error Budget)。 Why it fits:チームがSLOとポリシーに合意した後に使用してください。残りの予算をリリースや信頼性の作業に役立てましょう。 Do not use it when:予算を計画的なダウンタイムや罰として扱わないでください。それはトレードオフを行うための共有のシグナルです。 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):単一の公式標準が全体の用語を管理するわけではありません。その意味はチーム、プラットフォーム、またはフレームワークによって変わる可能性があります。 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.
このリクエストを確認する
Review how エラーバジェット (Error Budget) is used now. Definition: エラーバジェットは、SLOウィンドウ中に許容されるサービス低下の量です。これは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.