Welcome! Log In Create A New Profile

Advanced

Re: Behavior between upstream hash and backup

Robert Paprocki
January 11, 2017 04:36PM
Hi,

On Wed, Jan 11, 2017 at 1:27 PM, Jonathan Simowitz via nginx <
nginx@nginx.org> 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
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#server? Sounds
like exactly what you need.
_______________________________________________
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: 184
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