LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] ldirectord, persistence handling and connections still h

To: Tomasz Chmielewski <mangoo@xxxxxxxx>
Subject: Re: [lvs-users] ldirectord, persistence handling and connections still hitting "crashed" realservers
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Wed, 5 May 2010 18:51:08 +1000
On Tue, May 04, 2010 at 09:55:56PM +0200, Tomasz Chmielewski wrote:
> Suppose you have the following ldirectord setup:
> 
> virtual = 1.2.3.4:80
>       protocol = tcp
>       scheduler = lc
>       persistent = 1200
>       real = 10.1.1.1:80 masq 1
>       real = 10.1.1.2:80 masq 1
>       request = "/.testpage"
>       receive = "test page"
> 
> 
> You connect as a client from the internet, LVS pointed you to 
> 10.1.1.2:80 realserver.
> 
> After a while, 10.1.1.2:80 crashed, ldirectord "quiescents" this real 
> server, but connections from your client in the internet still try to 
> hit the crashed server for about 20 minutes.
> 
> 
> Is there a workaround for that? I.e. if the realserver is gone, the 
> connections for that client should start hitting the other realserver, 
> even with persistence enabled.

Try setting /proc/sys/net/ipv4/vs/expire_quiescent_template to 1,
this can be done manually using echo or using the sysctl command.

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