LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Localnode Connection Sync problem.

To: Sal Tepedino <stepedino@xxxxxxxxxxxxxx>
Subject: Re: Localnode Connection Sync problem.
Cc: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Thu, 10 May 2007 10:38:13 +0900
On Wed, May 09, 2007 at 12:27:06PM -0400, Sal Tepedino wrote:
> On Wed, 2007-05-09 at 19:10 +0900, Simon Horman wrote:
> > The only reason that LVSSyncDaemonSwap exists is to cope with
> > old (<=2.4.26) kernels that could only run the backup or master deamon,
> > not both. If you have a newer kernel, just run both daemons on boot.
> 
> So, what's the proper way to start the sync daemon on 26 kernels?
> I assume a:
> ipvsadm --start-daemon master
> ipvsadm --start-daemon backup
> on boot. I put it in rc.local. Is there a 'right' way to do it?

Unless your distrubition supplied an init script to do it for you,
then yes, that is right.

> > Incidently, the sync deamon doesn't have a way to flush connections,
> > so I recommend setting autofailback to off.
> 
> The kernel based one? Why would it need to flush connections instead of 
> just letting them timeout?

If you have autofailback turned on, then as soon as the original
master comes back up, it will once again be the master, but
there is a good chance that connections won't have been synchonised
to it yet.

> And do you have any ideas as to why my failover is not happening
> properly?

Not at this stage :(

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


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