Welcome! Log In Create A New Profile

Advanced

max_fails and fail_timeout in contex location

Posted by Lucuz 
max_fails and fail_timeout in contex location
July 20, 2016 05:20AM
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!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready