LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: lvs-dr realserver maintenance

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: lvs-dr realserver maintenance
From: Piero Calucci <calucci@xxxxxxxx>
Date: Tue, 26 Jul 2005 09:45:12 +0200
On Tue, 2005-07-26 at 09:16 +0200, Alessandro Tarchi wrote:
> Hi,
> I set up 2 server as lvs-dr balancer in HA and 2 realserver apache in
> the same subnet.
> For lvr-dr nodes I used rhES3 with rpm packages ipvsadm and piranha
> (pulse + nanny).
> For apache nodes I used rhES3 with kernel 2.4.29 and these settings:
> 
> net.ipv4.conf.lo.arp_ignore = 1
> net.ipv4.conf.lo.arp_announce = 2
> net.ipv4.conf.all.arp_ignore = 1
> net.ipv4.conf.all.arp_announce = 2
> 
> in /etc/sysctl.conf to solve the arp problem.
> 
> The system seems to work right, but when I stop apache on a realserver
> (i.e. for maintenance), I see (ipvsadm -l) the weight change from 1 to 0
> but the entry is still present and the client directed on that
> realserver lose the connection.

Are you using persistence? If so you should set the weight to 0 in
ldirector, then wait for all peristent connection to expire before
taking out the RS.

-- 
pc

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