Welcome! Log In Create A New Profile

Advanced

Re: Switch between upstream server

Martin Grigorov
May 28, 2020 08:40AM
Hi,

On Thu, May 28, 2020 at 3:22 PM Praveen Kumar K S <praveenssit@gmail.com>
wrote:

> Hello,
>
> Is it possible to have multiple upstream servers defined in nginx
> configuration. But still the request should be sent to only one upstream
> server.
> Lets say, I have two upstream servers A and B. Nginx should proxy request
> to A by default.
> But when A is not available, it should send request to B.
> When A come back, it should send requests to A.
>

I think you can achieve this by using a very high value of 'weight' -
https://nginx.org/en/docs/http/ngx_http_upstream_module.html#upstream


>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Switch between upstream server

Praveen Kumar K S May 28, 2020 08:24AM

Re: Switch between upstream server

Martin Grigorov May 28, 2020 08:40AM

Re: Switch between upstream server

Sam Henaghan May 28, 2020 08:46AM

Re: Switch between upstream server

itpp2012 May 28, 2020 09:06AM

RE: Switch between upstream server

Reinis Rozitis May 28, 2020 08:46AM

Re: Switch between upstream server

Sam Henaghan May 28, 2020 09:54AM

Re: Switch between upstream server

Andrei May 28, 2020 10:02AM

Re: Switch between upstream server

Sam Henaghan May 28, 2020 10:10AM

RE: Switch between upstream server

Reinis Rozitis May 28, 2020 10:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready