# Outlier Detection

## Summary

**Outlier Detection** and ejection is the process of dynamically determining whether some number of hosts in an upstream cluster are performing unlike the others and removing them from the healthy load balancing set.

See Envoy [documentation](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/outlier#arch-overview-outlier-detection) and [API](https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/outlier_detection.proto#envoy-v3-api-msg-config-cluster-v3-outlierdetection) for more information.

## How to configure

**Core:**

| **Config file key** | **Type** | **Usage**    |
| :------------------ | :------- | :----------- |
| `outlier_detection` | `object` | **optional** |

### Examples

```yaml
outlier_detection: {'consecutive_5xx': 12}
```

**Enterprise:**

Configure **Outlier Detection** in the Console under the route's **Load Balancing** settings.

**Kubernetes:**

See the [Load Balancing](https://www.pomerium.com/docs/capabilities/routing.md#passive-health-checks) guide for more information
