Load Shedding
ロードシェディング
ロードシェディングは、システムが容量に近づくと一部の作業を拒否します。これにより、有用な作業が極端な遅延や完全なクラッシュから保護されます。
capacity signal + priority + admission gate -> admit | reject early + retry guidance1,000✓安全容量1,000→承認済み240×早期に拒否されましたcapacity signal + priority + admission gate -> admit | reject early + retry guidanceSREもう一つの例
サービスは、毎秒1,000件のリクエストを処理できます。需要が1,240に達します。重要なチェックアウトのトラフィックを保持し、240件のリクエストを迅速に拒否します。
主な部分
- 01キャパシティ信号
- 02入場基準
- 03リクエスト優先度
- 04高速拒否
- 05呼び出し側ガイダンス
- 06回復しきい値
以下の場合に使用します
安全容量とリクエストの優先度を測定した後に使用してください。端の近くで安価に拒否し、呼び出し元に明確な再試行の信号を送ります。
以下の場合は使用しないでください
承認された耐久性のある作業を黙って破棄しないこと。サーバーが既に詰まるまで待たないこと。再試行を調整して、別のスパイクを防ぐこと。
コードで使用する名前
capacity signal + priority + admission gate -> admit | reject early + retry guidance 出荷前に
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 ロードシェディング (Load Shedding)。 User context:サービスは、毎秒1,000件のリクエストを処理できます。需要が1,240に達します。重要なチェックアウトのトラフィックを保持し、240件のリクエストを迅速に拒否します。 Technical concept or control:ロードシェディング (Load Shedding)。 Why it fits:安全容量とリクエストの優先度を測定した後に使用してください。端の近くで安価に拒否し、呼び出し元に明確な再試行の信号を送ります。 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 ロードシェディング (Load Shedding) is used now. Definition: ロードシェディングは、システムが容量に近づくと一部の作業を拒否します。これにより、有用な作業が極端な遅延や完全なクラッシュから保護されます。 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.