LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Fallback to apache on director with ldirectord

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Fallback to apache on director with ldirectord
From: Horms <horms@xxxxxxxxxxxx>
Date: Thu, 27 Oct 2005 16:58:13 +0900
On Mon, Oct 24, 2005 at 02:02:04PM +1000, Guy Waugh wrote:

[xnip]
> virtual=10.0.0.1:80
>         real=192.168.1.1:80 masq
>       real=192.168.1.2:80 masq
>         fallback=127.0.0.1:80 masq
>         quiescent=no
>         checktype=connect
>         service=none
>         scheduler=wlc
>         persistent=600
>         protocol=tcp
> 
> When apache on the real servers is shut down, 'ipvsadm -L' shows that 
> the service has fallen back to 127.0.0.1:80 (as do the ldirectord logs), 
> but I can't connect to the service - it says 'connection refused'. I'm 
> trying to connect from my workstation, and the connection works fine 
> when apache on the real servers is up and running.
> 
> When the service is in fallback mode, I can telnet to port 80 on 
> 127.0.0.1 from the director, and a 'GET / HTTP/1.1' with a correct HTTP 
> Host: header works, so apache on the director is answering requests to 
> 127.0.0.1 port 80. The problem seems to be that the LVS code isn't 
> handing the connection from my workstation off to 127.0.0.1:80 - it 
> doesn't in fact seem to be listening to connections at all.
> 
> Anyone have any ideas on what I could try?

As you have persistance set, you need to set
/proc/sys/net/ipv4/vs/expire_quiescent_template to 1
Else persistance will continue to take effect
for hosts that have connected within the past
600 seconds.

-- 
Horms

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