envoyproxy / envoyproxy/gateway

Make retry_host_predicate Configurable or Remove Default from Retry Policy

Abierto
#5,689 5 comentarios 0 reacciones 0 asignados Ver en GitHub
stale triage
Lenguaje dominante
Go
Estrellas
3k
Forks
864
Merge medio
2 d 2 h
PR fusionados (30 d)
140

Descripción

Currently, Envoy Gateway sets the following retry host predicate by default in all [retry policies](https://github.com/envoyproxy/gateway/blob/521b78b6efdcd13ebe3fe14c06c45681a84ef97c/internal/xds/translator/route.go#L619):

```json
"retry_host_predicate": [
{
"name": "envoy.retry_host_predicates.previous_hosts",
"typed_config": {
"@type": "type.googleapis.com/envoy.extensions.retry.host.previous_hosts.v3.PreviousHostsPredicate"
}
}
]
```

This behavior is hardcoded and cannot be disabled or customized by users.
In the case of clusters with only a single host, this predicate causes retries to fail immediately, since there are no other hosts to select from.

### Request:

Please consider making `retry_host_predicate` configurable.
Alternatively, remove it from the default retry policy unless explicitly set by the user.

Thanks

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.