envoyproxy / envoyproxy/gateway
Enhanced failover logic
- Lingua principale
- Go
- Stelle
- 3k
- Fork
- 864
- Merge medio
- 2g 2h
- PR unite (30g)
- 140
Descrizione
*Description*:
>Describe the desired behavior, what scenario it enables and how it
would be used.
I'd like the ability to configure [circuit breakers](https://gateway.envoyproxy.io/docs/api/extension_types/#circuitbreaker) on a particular backend service and once those thresholds are reached I'd like to send all new connections to a secondary service.
One way I thought of going about this was to use the `Backend` CRD as described in [Failover docs](https://gateway.envoyproxy.io/docs/tasks/traffic/failover/) but the issue there is that BackendTrafficPolicy can only be applied to one of `'Gateway', 'HTTPRoute', 'GRPCRoute', 'UDPRoute', 'TCPRoute', 'TLSRoute'` rather than one of the underlying backendRefs which means the circuit breaker settings would also be applied to the secondary failover service where I'd want to have higher/different thresholds.
I propose one of the following:
- Allow for attaching `BackendTrafficPolicy` to `Backend`
- Allow for configuring Circuit Breakers (would probably be implemented via ClusterSettings) inside `Backend`
I'm curious how one might handle this when working with raw envoy configuration. Reading the envoy docs this might be something that simply isn't supported easily and most posts/issues I could find are more focused on retries rather than a failover like I'm seeking.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.