Welcome! Log In Create A New Profile

Advanced

Behavior between upstream hash and backup

Jonathan Simowitz via nginx
January 11, 2017 04:30PM
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?

If so, great! If not, what is the recommended way to achieve this desired
behavior?

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

Behavior between upstream hash and backup

Jonathan Simowitz via nginx January 11, 2017 04:30PM

Re: Behavior between upstream hash and backup

Robert Paprocki January 11, 2017 04:36PM

Re: Behavior between upstream hash and backup

Jonathan Simowitz via nginx January 11, 2017 04:40PM

Re: Behavior between upstream hash and backup

Maxim Dounin January 12, 2017 09:46AM

Re: Behavior between upstream hash and backup

Jonathan Simowitz via nginx January 12, 2017 10:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 158
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