TL;DR: How to fall back to the external service after n
reties on cluster pods?
There is VirtualService
that routes HTTP requests to the cluster pods and retries if pods return 503
. I need requests to be routed to the external service after the n
retries.
Is it possible to use x-envoy-attempt-count
header field inside VirtualService
routing?
http:
- match:
- headers:
x-envoy-attempt-count:
exact: 5
Are there any other options?
Istio 1.9.4 It seems like during retry routes are not reevaluated so the route with the header match never gets selected.