LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] lvs for failover using weight 0

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] lvs for failover using weight 0
From: "it-intuition" <gerd.pickel@xxxxxxxxxxxxxxx>
Date: Wed, 2 Sep 2009 23:52:17 +0200
Hello,

we are currently using lvs for balancing two webservers by using the wrr
scheduler in combination with persistance.
Now we want to modify our setup to use one primary webserver and a
secondary webserver as a backup server. My idea was to set the weight of
the primary webserver to 1000 and for the backup server to 0.

These are the question that came up in my mind:

1. How will this setup behave if the primary webserver is down?

2. How will this setup behave if the primary webserver is up again?

3. Does a weight of 0 mean, that no connection to the backup server can
be made (if the primary webserver is down)?

The last question may sound stupid, but I read that a weight of 0 is
often used to silently take a server out of a pool.
So I think a weight of 0 prevents clients to connect; which is not the
effect I want for our setup.

Any help or comments would be appreciated.

Gerd



_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

<Prev in Thread] Current Thread [Next in Thread>