LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Stopping an real server for upgrade

To: Arie Skliarouk <skliarie@xxxxxxxxx>
Subject: Re: [lvs-users] Stopping an real server for upgrade
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Mon, 20 Sep 2010 09:16:27 +0900
On Sun, Sep 19, 2010 at 06:38:08PM +0200, Arie Skliarouk wrote:
> Hi,
> 
> We have a farm of several apache servers. Sometimes the application needs to
> be upgraded. The server must not receive any requests during the upgrade.
> For that I simply exclude the server from the loadbalancer.
> 
> I noticed that excluding the server from the loadbalancer "hangs" all
> pending http requests to the server, thus breaking them. I tried to assign
> zero weight to the real server to be upgraded, but the operation only
> prevents new IP numbers (we use wlc scheduler) to be assigned to the server,
> requests from IP numbers that already were assigned to the real server
> continue to arrive to the server.
> 
> Is there a way to make loadbalancer to "rehash" it's persistency IP tables
> so that new requests from IP numbers assigned to the real server with zero
> weight will be forwarded elsewhere?

Hi Arie,

Yes, you need to set /proc/sys/net/ipv4/vs/expire_quiescent_template
to a non-zero value. It is safe to do this any time before you
want it to take effect. In particular, it is safe to set it when
you boot the system or initialise LVS.

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