On Tue, Jul 13, 2004 at 03:31:51PM -0700, Peter Mueller wrote:
> Webmail, sorry for format.
>
> Is this a safe setting to use? Have both LVS servers as both master and
> slave?
In the 2.6 incarnation of LVS, yes.
In the 2.4 incarnation, there is a patch to allow you to do this
but I don't think it made it into the main tree.
http://www.in-addr.de/pipermail/lvs-users/2003-June/008783.html
http://www.linuxvirtualserver.org/~acassen/software/linux-2.4.26-ipvs_syncd.patch.gz
This is definately the way you want to run the code, else
you get the master/slave problem that I describe here.
http://www.ultramonkey.org/papers/lvs_tutorial/html/lvs_tutorial.html
Of course there are other ways to get around this,
such as starting and stopping the deamon in master and slave
mode when the current node becomes active or standby,
but this really is a chore.
>
> ________________________________
>
> From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx on behalf of James Bromberger
> Sent: Thu 7/8/2004 12:44 AM
> To: LinuxVirtualServer.org users mailing list.
> Subject: Re: Connection Synchronization question
>
>
>
> >> If you are using something like heartbeat to start and stop
> >> ldirectord,
> >> then you don't want the synchronisation daemons handled there,
> >> else the synchronisation daemon won't run when the ldirectord
> >> resource is relinqushed on a node, and this really isn't what
> >> you want.
> >>
> >> ipvsadm has an init script, You should be able to use that
> >> to start and stop the daemons.
> >
> > Well here's what I am going to be doing in my next cluster going live
> > very soon now (sm). If anyone sees anything silly please let me know.
> > Note that if you copy my config you will have to change
> > /etc/ha.d/update's SSH line to the proper host, and reverse it for the
> > backup host. You will also probably want an ssh-public key login
> > setup,
> > although I'm not certain I'm going to do this.
> >
> > </etc/ha.d/resource.d/lvsstate.sh>
> > #!/bin/sh
> > # script to set the sync state properly on both LVS servers.
> >
> > case "$1" in
> > start)
> > /sbin/ipvsadm --stop-daemon
> > /sbin/ipvsadm --start-daemon master
> > ;;
> > stop)
> > /sbin/ipvsadm --stop-daemon
> > /sbin/ipvsadm --start-daemon backup
> > ;;
> > esac
> >
>
> May be the is wrong, but we run ldirectord on both master and standby
> hosts ALL the time. We also run "ipvsadm --start-daemon master" and
> "ipvsadm --start-daemon backup" on BOTH hosts all the time (2.6
> kernel). The ONLY thing that heartbeat is doing is brining the service
> IP addresses up and down. That way ldirectord doesn't need 10 seconds
> or so to check services before they come into service: everything is
> instant. Maybe this is wrong, but it works really well. Our failover
> time is less than half a second, and all state is retained. Fail back
> can happen immediately as well...
>
>
> JEB
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
>
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
--
Horms
|