LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ipvs repartition problem

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: ipvs repartition problem
From: Horms <horms@xxxxxxxxxxxx>
Date: Tue, 22 Mar 2005 14:43:30 +0900
On Mon, Mar 21, 2005 at 05:04:31PM +0100, Stéphane Klein wrote:
> Hello,
> 
> I have a problem with IPVS, here is my config:
> 
>       - LVS-NAT
>       -Two directors
>       - heartbeat 1.2.3
>       - ipvsadm 1.24
>       - Kernel 2.6.10
>       
> Here is the configuration of ldirectord:
> 
> checktimeout=8
> checkinterval=5
> virtual=VIP:80
>         protocol=tcp
>         scheduler=wlc
>         persistent=900
>         real=10.1.1.25:80 masq
>         real=10.1.1.26:80 masq
>         checktype=negotiate
>         request="/test.htm"
>         receive="test"
>         service=http
> 
> All is working well until i stop a real server.
> The director continue to send requests to the real server which was stopped.
> 
> Ipvsadm -Lcn confirm that the request is sent to the stopped real server.
> 
> Is anyone has an idea?

Yes.

The problem here is that persistance still takes effect even
after the real server is removed (I assume you have quiescent=1).
You can change this behaviour by running.

echo 1 > /proc/sys/net/ipv4/vs/expire_quiescent_template

The effect of this is that the persitstance templates
are expired when a connection is made quiescent. And
thus no additional connections will be directed to
the real server in question.

-- 
Horms

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