You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I have two clusters defined in envoy yaml, which are for two servers. They map to different url prefix. And they have their own health check logic. When the cluster is unhealthy, the requests will return error code 503. Now, I want envoy returns error code 501 for server2 when server2 is unhealthy. So user will receive 503 if server1 is unhealthy, and receive 501 if server2 is unhealthy.
You can try using CEL expressions via extension_filter [Ref]
You basically will have to use both the status_code_filter and extension_filter like below. I haven't tried the config so you might have to adjust it but you get the idea.
Description:
I have two clusters defined in envoy yaml, which are for two servers. They map to different url prefix. And they have their own health check logic. When the cluster is unhealthy, the requests will return error code 503. Now, I want envoy returns error code 501 for server2 when server2 is unhealthy. So user will receive 503 if server1 is unhealthy, and receive 501 if server2 is unhealthy.
I don't want do any changes to server2. I tried local_reply_config config, but it impacts both prefixes. Is there a way to get this ?
The text was updated successfully, but these errors were encountered: