outlier detection
termKept in this browser · My desk
Passive health checking: ejecting a backend from a load-balancing pool because of errors or failures seen in real traffic, rather than because an active probe failed.
Envoy ejects a host after 5 consecutive server errors by default, for a base time of 30 seconds multiplied by the number of times it has been ejected, capped at 300 seconds, and ejects no more than 10% of a cluster unless configured to; NGINX marks a server unavailable after max_fails failures, 1 by default, within fail_timeout, 10 seconds; HAProxy's observe option feeds real traffic into its health checks.
Why both. A passive check sees what clients see, including failures an active probe cannot provoke, but it needs traffic to learn anything and can eject healthy hosts when the fault lies elsewhere. Guard rails. Envoy's panic threshold, 50% by default, sends traffic to all hosts when too few are healthy, to avoid failures cascading as load rises, or to none if the service fails all or nothing; its analysis sweep runs every 10 seconds. Single server. NGINX ignores max_fails and fail_timeout for a group with one server, which is never considered unavailable. The same risk with active checks. AWS's account of its October 2025 event describes health checks that failed although targets were healthy and removed capacity until automatic failover was disabled, and a velocity control added afterwards to limit how much capacity health checks may remove.
Also known as: passive health check, passive health checking, host ejection, panic threshold
Sources
- Envoy documentation, config.cluster.v3.OutlierDetection (read 2026-11-16): consecutive_5xx 5, interval 10 s, base_ejection_time 30 s multiplied by the number of ejections, max_ejection_percent 10%, max_ejection_time 300 s
- Envoy documentation, Panic threshold (read 2026-11-16): 50% by default; below it traffic goes to all hosts, or to none if configured, to avoid failures cascading as load increases
- NGINX documentation, Module ngx_http_upstream_module (read 2026-11-16): max_fails 1 and fail_timeout 10 s, ignored for a single-server group; backup; drain; slow_start, default 0
- HAProxy Technologies, HAProxy 3.2 Configuration Manual (read 2026-11-16): inter 2000 ms, fall 3, rise 2; backup and allbackups; observe; drain and maint; slowstart, linear and never at startup
- Amazon Web Services, Summary of the Amazon DynamoDB Service Disruption in the Northern Virginia (US-EAST-1) Region, October 2025 (read 2026-11-16): Network Load Balancer health checks failing although targets were healthy, automatic zone DNS failover, and a velocity control to limit the capacity health checks may remove