Welcome! Log In Create A New Profile

Advanced

Upstream block: backup with max_fails=0 does not appear to work as expected

Jonathan Simowitz via nginx
May 17, 2017 05:08PM
Hello,

I have an upstream block with two servers as follows:

upstream {
server foo.com;
server bar.com max_fails=0 backup;
}

My desired use case would be that the foo.com server is hit for all
requests and can be marked as down by nginx if it starts serving errors. In
this case nginx will fallback to hitting bar.com, however bar.com should
not be allowed to be marked down by nginx.

What is actually happening is the "max_fails=0" statement is essentially
being ignored causing the error message "no live upstreams while connecting
to upstream" in my logs.

Is there a configuration here that obtains my desired use case?

Thank you,
~Jonathan

--
Jonathan Simowitz | Jigsaw | Software Engineer | simowitz@google.com |
631-223-8608
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Upstream block: backup with max_fails=0 does not appear to work as expected

Jonathan Simowitz via nginx May 17, 2017 05:08PM

Re: Upstream block: backup with max_fails=0 does not appear to work as expected

Roman Arutyunyan May 18, 2017 06:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 117
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready