LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

fallback doesn't work at all (apache/ha/lvs)

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: fallback doesn't work at all (apache/ha/lvs)
From: Thoralf Will <thoralf@xxxxxxxxxxx>
Date: Fri, 23 Apr 2004 12:41:53 +0200
I'm new to the list, sorry if this hasn't been answered before, I didn't find 
anything so far.

I have a (test)setup with 1 node (2nd node is just a fake-entry) as a director 
for lvs. The director is connected to 2 realservers which are working fine and 
doing their job. The problem is the fallback that I want to implement in case 
both servers die. This fallback (apache) is meant to run locally on the 
director. On the director it works fine, I can request the testpage and get the 
expected answer. But if I switch of both realservers and the fallback gets 
added to the list I don't receive the expected waitpage but a connection 
refused error. The director notices an incomming connection regarding to 
ipvsadm but no answer is delivered.

Any idea where the mistake maybe?


thx in advance,
Thoralf


configuration:

/etc/ha.d/ha.cf: (shouldn't be the problem)
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility     local0
keepalive 2
deadtime 10
serial  /dev/ttyS0
baud    19200
udpport 694
bcast     eth0
auto_failback on
node    director.somedomain.ext
node    fakeserver.somedomain.ext

/etc/ha.d/haresources:
director.somedomain.ext 192.168.1.9/24/eth0
director.somedomain.ext 192.168.1.110/24/eth0 ldirectord

/etc/ha.d/conf/ldirectord.cf: (maybe here somewhere?)
checktimeout=10
checkinterval=10
quiescent=yes
virtual = 192.168.1.110:80
        protocol = tcp
        scheduler = wlc
        real = 192.168.1.200:80 gate 5
        real = 192.168.1.201:80 gate 5
        fallback = 127.0.0.1:80
        request = "test.html"
        receive = "teststring"

output of ipvsadm:
IP Virtual Server version 1.0.11 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.1.110:http wlc persistent 60
  -> realserver1.somedomain.ext:http   Route   0      0          0
  -> realserver2.somedomain.ext:http   Route   0      0          0
  -> localhost:http                    Local   1      0          0

(the fallback-webserver is listening on 127.0.0.1:80, the realservers are shut 
off to test the fallback)


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