Behavior between upstream hash and backup

Robert Paprocki rpaprocki at
Wed Jan 11 21:34:04 UTC 2017


On Wed, Jan 11, 2017 at 1:27 PM, Jonathan Simowitz via nginx <
nginx at> wrote:

> Hello,
> I would like to define an upstream block with a number of servers and
> utilize the hash directive to choose a particular server dependent on the
> request. There is a chance that the chosen server could fail and so I would
> also like to configure a backup server to handle the request in this case.
> If I define an additional server in this upstream and declare it as backup
> will it handle the request if the hash-chosen server fails as defined by my
> proxy_next_upstream directive?

Have you had a look at the 'backup' parameter of Sounds
like exactly what you need.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list