-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lb_policy 'first' never skipping to second upstream #4432
Comments
See #4245 for an explanation of how it works. You need to set a long enough You should also probably enable passive and/or active health checks which can let you avoid needing to rely on the |
Ah, that explains a lot. Using #4245 as a base still doesn't select the next upstream. I have tried every combination of dial_timeout, lb_try_duration and lb_try_interval imaginable. Does the on_demand TLS interfere with the timeout?
|
No, that's orthogonal. Please enable the I think you probably have to enable passive health checks via |
Adding
Not sure about the optimum values but this feels quite snappy to me. |
I have the following config:
The first upstream is sometimes gone for periods of time and I would like it to use the second as a fallback. Whatever settings I use or whatever duration/interval I choose (including 0ms) it never forwards to 10.14.0.5:8080.
The browser just displays "HTTP Error 502"
The text was updated successfully, but these errors were encountered: