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

2017-05-18 Thread Roman Arutyunyan
Hi Jonathan, On Wed, May 17, 2017 at 05:05:51PM -0400, Jonathan Simowitz via nginx wrote: > 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

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

2017-05-17 Thread Jonathan Simowitz via nginx
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 fa