LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] LVS Sync in Ldirectord

To: LinuxVirtualServer.org users mailing list. <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] LVS Sync in Ldirectord
From: Jay Faulkner <jay.faulkner@xxxxxxxxxxxxx>
Date: Thu, 17 Dec 2009 09:42:18 -0600
> -----Original Message-----
> From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:lvs-users-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
> Darren.Mansell@xxxxxxxxxxxx
> Sent: Thursday, December 17, 2009 10:22 AM
> To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [lvs-users] LVS Sync in Ldirectord
> 
> I'm using ldirectord to load LVS modules rather than the ipvsadm init
> script. Man ipvsadm says you need to start the ipvsadm sync daemon
> using --start-daemon state and --stop-daemon. As ldirectord is doing
> the loading / unloading of ipvsadm rules then I think the ldirectord
> script itself needs to support ipvsadm daemon sync states?
> 
> Regards
> Darren
> 

Hey,

I'm using keepalived, which has built-in support for LVS syncing, but I still 
choose to load the modules manually. Simply put commands like these in your 
rc.local, and the syncing works. I like doing it this way because it makes it 
where I can stop keepalived, the ip addresses failover, but yet the connection 
state table is still being synced for when I need to failback.

PRIMARY:
/sbin/ipvsadm --start-daemon master --syncid 101 # startup master
/sbin/ipvsadm --start-daemon backup --syncid 201 # startup backup

BACKUP:
/sbin/ipvsadm --start-daemon master --syncid 201 # startup master
/sbin/ipvsadm --start-daemon backup --syncid 101 # startup backup

Jason Faulkner
Linux Engineer, Rackspace Email & Apps
jason.faulkner@xxxxxxxxxxxxx


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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