Outlier detection
Definition
Outlier detection is a passive health check in which a proxy or client watches responses from each backend and temporarily ejects those with consecutive failures, high error rates or abnormal latency.
In practice
Active probes test a synthetic endpoint; outlier detection judges the requests that matter. Proxies such as Envoy, NGINX and service mesh sidecars eject a host after, say, five consecutive 5xx responses, keep it out for a base time that grows with repeated ejections, then let it back in. This catches gray failures that probes miss.
It needs traffic to work and can misfire: errors caused by bad requests or by a shared downstream make healthy hosts look bad. Always cap the share of hosts that can be ejected at once (for example 10–20%), otherwise a fleet-wide problem empties the pool and makes things worse.
Example
Envoy is configured with consecutive_5xx: 5, base_ejection_time: 30s and max_ejection_percent: 20, so at most 2 of 10 pods can be ejected at the same time.