LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] heartbeat+ldirectord NAT gateway failover

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] heartbeat+ldirectord NAT gateway failover
From: "Sid Stuart" <sid@xxxxxxxxxxxxxx>
Date: Tue, 15 Apr 2008 15:46:41 -0700
Hi,

I am using heartbeat and ldirectord in a NAT configuration to support HTTP
services. The problem with this configuration is the real server needs to
route traffic back through the active LVS server. This means the router
address assigned to the real servers needs to failover between LVS nodes. Is
there a standard mechanism to do this? I have not found it in the
documentation or on this mailing list.

My first thought is to configure a dummy service in heartbeat that will
cause it to generate register the virtual IP. For instance, if I use
172.16.1.1 as the virtual gateway address, I could create an haresources
entry,

lb1 172.16.1.1 dummy

Where dummy is a script that takes stop and start arguments but doesn't
actually do anything.

Is there a better solution than this?

Sid

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