Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

max_fails and fail_timeout in contex location

$
0
0
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!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>