Skip to content

Apply enforcement settings for outlier_detection #6985

@Inode1

Description

@Inode1

Description:
Right now, outlier_detection in Envoy Gateway is applied like this:

"outlier_detection": {
  "consecutive_5xx": 0,
  "interval": "60s",
  "base_ejection_time": "30s",
  "max_ejection_percent": 50,
  "consecutive_gateway_failure": 2,
  "split_external_local_origin_errors": true,
  "consecutive_local_origin_failure": 5
}

Notice that enforcement fields are missing: enforcing_consecutive_gateway_failure(default 0), enforcing_consecutive_local_origin_failure(100), and enforcing_local_origin_success_rate (100) are not set, so OD does not enforce ejections consistently.

Desired behavior

We want outlier_detection applying enforcement automatically:

EnforcingSuccessRate → 0.

EnforcingConsecutiveGatewayFailure → 100 if ConsecutiveGatewayErrors > 0, otherwise 0.

If SplitExternalLocalOriginErrors == true:

EnforcingLocalOriginSuccessRate → 0.

EnforcingConsecutiveLocalOriginFailure → 100 if ConsecutiveLocalOriginFailures > 0.

This would make the policy enforcement consistent and predictable and enforce gateway_failure errors (for now its not work).

docs:
Outlier detection

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions