LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] LVS please help.

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] LVS please help.
From: Brent Clark <brentgclarklist@xxxxxxxxx>
Date: Tue, 08 Sep 2009 19:38:27 +0200
Hiya

Im totally beaten by LVS.

I got, just two machines that im trying to get failover, and loadbalancing  
running on for apache2.

I got my heartbeat working and it fails over awesomely. When I stop / start 
heartbeat I see it brings up the virtual ip , as well as if I run ipvsadm -L 
-n, I see ...

web01:~# ipvsadm -L -n
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  41.203.4.5:80 rr
   -> 41.203.4.7:80                Route   1      0          0
   -> 41.203.4.4:80                Local   1      0          0
web01:~#

on either machine.

The problem I have is, if I use siege to test, what I have found is that ..
if I do a HTTP GET to 41.203.4.5, and LVS is running on 41.203.4.4, I get 
replys, but when LVS's round robin changes to 41.203.4.7, I get "Error: socket: 
unable to connect sock.c:215: No route to host".
(and vice versa i.e. heartbeat running on 41.203.4.7, HTTP GET to 41.203.4.5 
and "No route to host" to 41.203.4.4)

My "/etc/ha.d/ldirectord.cf" is relatively straight forward (same config for 
both machines).

checktimeout=10
checkinterval=2
autoreload=no
logfile="/var/log/ldirectord.log"
quiescent=yes
virtual=41.203.4.5:80
         real=41.203.4.4:80 gate
         real=41.203.4.7:80 gate
         fallback=127.0.0.1:80
         service=http
         request="ldirector.html"
         receive="Test Page"
         scheduler=rr
         protocol=tcp
         checktype=negotiate

My /etc/sysctl.conf
net.ipv4.ip_forward=1
#net.ipv4.conf.all.rp_filter=1
#net.ipv4.icmp_echo_ignore_broadcasts=1
# Enable configuration of arp_ignore option
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.eth0.arp_ignore = 1
#net.ipv4.conf.eth1.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
net.ipv4.conf.eth0.arp_announce = 2
#net.ipv4.conf.eth1.arp_announce = 2

I dont know where more to look or what more I need to do.

If someone could assist, I would be most grateful.

Kind Regards
Brent Clark

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