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.