Re: [lvs-users] Timeouts after 5 seconds running IPVS-DR

To: " users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Timeouts after 5 seconds running IPVS-DR
From: "Malcolm Turnbull" <malcolm@xxxxxxxxxxxxxxxx>
Date: Mon, 29 Sep 2008 17:46:22 +0100

Make sure that all interfaces are covered if you have more than one:

You don't need the hidden stuff (don't think its in Ubuntu anyway.)


ipvsadm -Lnc

will show a lot of SYN_RECV if you are getting ARP issues.

2008/9/29 Julien Cornuwel <cornuwel@xxxxxxxxx>
> Hi,
> I'm trying to set up load balancing with IPVS on two Apache webservers.
> The loadbalancer and both apache servers are virtual machines running Ubuntu
> 8.04 server on VMware ESX 3.5.
> If the platform has been idle for some time (like when I came back to work
> this morning), I can point a browser to http://VIP and get pages from
> server1 or server2 alternatively (I'm using rr during setup). But after
> about 5 seconds, I get nothing and the browser times out.
> Here is my configuration on the load balancer :
> ipvsadm -A -t $VIP:80 -s rr
> ipvsadm -a -t $VIP:80 -r $RIP1:80 -g
> ipvsadm -a -t $VIP:80 -r $RIP2:80 -g
> On webservers, I added the following to /etc/sysctl.conf (as suggested on
> :
> net.ipv4.conf.all.hidden = 1
> net.ipv4.conf.lo.hidden = 1
> I rebooted them and then :
> ifconfig lo:0 $VIP netmask up
> Unless I did something stupid (if so, please tell me), it should work. I
> also tried the following with no more luck :
> echo 1 > /proc/sys/net/ipv4/conf/lo/arp_ignore
> echo 2 > /proc/sys/net/ipv4/conf/lo/arp_announce
> echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore
> echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce
> I'm quite sure my problem is not on the loadbalancer but on webservers.
> Maybe I'm not using correct commands to prevent it from announcing the VIP ?
> Any help would be much appreciated.
> I already asked on ubuntu forums but I guess you guys are more used to these
> kind of problems...
> Thanks in advance for your time.
> _______________________________________________
> mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to


Malcolm Turnbull. Ltd.
Phone: +44 (0)870 443 8779

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