Hi guys,
i have this configuration
location / {
resolver 8.8.8.8;
proxy_next_upstream error timeout http_502;
proxy_next_upstream_tries 2;
set $backend_upstream http://testa.test.internal;
proxy_pass $backend_upstream;
}
I use this for balance my service with DNS and work well.
When one return 502 nginx tries the next, but on the next request tries again the broken address.
Is there a solution like max_fails and fail_timeout ?
Thank you!
i have this configuration
location / {
resolver 8.8.8.8;
proxy_next_upstream error timeout http_502;
proxy_next_upstream_tries 2;
set $backend_upstream http://testa.test.internal;
proxy_pass $backend_upstream;
}
I use this for balance my service with DNS and work well.
When one return 502 nginx tries the next, but on the next request tries again the broken address.
Is there a solution like max_fails and fail_timeout ?
Thank you!