Switch between upstream server

Martin Grigorov martin.grigorov at gmail.com
Thu May 28 12:38:06 UTC 2020


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

> 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' -

> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20200528/336aa751/attachment.htm>

More information about the nginx mailing list