[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-virtual-server
Subject:    RE: Connection Synchronization question
From:       "Peter Mueller" <pmueller () sidestep ! com>
Date:       2004-07-13 22:31:51
Message-ID: 1C8FFEE4F601A74EBF7E78E38EA5E53830D2D0 () mailbox ! jayst ! sidestep ! com
[Download RAW message or body]

Webmail, sorry for format.
 
Is this a safe setting to use?  Have both LVS servers as both master and slave?

________________________________

From: lvs-users-bounces@LinuxVirtualServer.org 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@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://www.in-addr.de/mailman/listinfo/lvs-users


_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://www.in-addr.de/mailman/listinfo/lvs-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic