nginx 2,upstream question

vps4 nginx-forum at nginx.us
Tue Sep 22 08:08:44 UTC 2015


nanaya Wrote:
-------------------------------------------------------
> Hi
> 
> On Tue, Sep 22, 2015, at 04:59 PM, vps4 wrote:
> > i have 2 backend server A & B, i want the upstream only works with
> A,
> > when A
> > die then works with B, if A not die , only works with A
> > how can i do
> > 
> 
> this?
> 
> upstream backend {
>   server A;
>   server B backup;
> }
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

thanks. the option backup do what i want.
but it seems when A busy, it will works with B?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261712,261715#msg-261715



More information about the nginx mailing list