envoyproxy / envoy

Cloud-native high-performance edge/middle/service proxy
https://www.envoyproxy.io
Apache License 2.0
24.95k stars 4.8k forks source link

Is there a way to specify backup for Cluster endpoints. #36444

Open manikandan231280 opened 3 weeks ago

manikandan231280 commented 3 weeks ago

Title: Is there a way to specify backup for Cluster endpoints.

Description: I am new to Envoy. How do i treat some endpoints as a backup and envoy forwards no ingress traffic to these servers unless all other endpoints that are not marked as “backup” fail the health check.

kyessenov commented 3 weeks ago

You're probably looking for priority levels https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/priority?

manikandan231280 commented 3 weeks ago

How do i configure Priority levels so that the traffic goes to P1 only when all the nodes under P0 becomes unhealthy. I think currently the traffic sent to both P0 and P1 based on the number of healthy nodes under P0 ?