Balancer Algorithms

Maxim Dounin mdounin at mdounin.ru
Thu Nov 20 15:18:50 MSK 2008


Hello!

On Thu, Nov 20, 2008 at 12:08:05PM +0000, Stephen Nelson-Smith wrote:

> Hi,
> > so this should work:
> >
> > upstream  backend  {
> >    server   backend1.example.com;
> >    server   backend2.example.com backup;
> > }
> 
> That looks good.  If I add backend3.example.com backup, I assume that
> is used only if backed2 fails.

No, your assumption is wrong.  All servers with backup flag are 
activated if all servers without backup flag are dead.

Maxim Dounin





More information about the nginx mailing list