max_fails=0 for server directive

Ruben rdocter at
Sun Oct 15 07:51:27 UTC 2017

When setting max_fails=0 for all server directives used in upstream module.
So for example:

upstream chat-servers {
  hash $arg_chatName;
  server chat-1 max_fails=0;
  server chat-2 max_fails=0;
  server chat-3 max_fails=0;

Assume a certain ?chatName=xxx is directed to chat-2 server, and this
server fails. Do I get an error for that connection or does it try chat-3

I want it not to go to the next sever but to just fail. Is this the correct
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list