zen.suite at gmail
May 12, 2012, 11:10 AM
Post #3 of 3
Michael Schwartzkopff <misch <at> clusterbau.com> writes:
> > Does anyone know how to configure Linux-ha as a load balancer? I seem
> > to remember it's possible but can't find any documentation on it. What
> > we want is for a user coming into a given VIP to get load balanced to
> > one of four active ports on the box in a round robin situation. Thanks
> > in advance for any help.
> > Regards,
> > Christopher A. Davis
> Make the loadbalancer run as a clone on both nodes under cluster control and
> make the VIP dependent on the LVS clone.
> I use ldirectord configuring the LVS and for the monitoring of the real
> servers because it nicely integrates into the cluster with its own resource
> With this setup you even can use the state table sync feature of LVS.
Can you help how to approach that config?
I have the same problem trying to get 2 nodes using one VIP in a round-robin
fashion, but as soon as I clone it, it becomes no longer pingable, reachable at
Here is my VIP cluster RA:
primitive vip1 ocf:heartbeat:IPaddr2 \
params ip="192.168.10.1" cidr_netmask="24" broadcast="192.168.10.255"
nic="eth0" clusterip_hash="sourceip" \
op monitor interval="30s"
clone cl_vip1 vip1 \
meta globally-unique="true" clone-max="2" clone-node-max="2"
Last updated: Sat May 12 15:08:00 2012
Current DC: hanode1 - partition with quorum
2 Nodes configured, 2 expected votes
1 Resources configured.
Node hanode1: online
vip1:0 (ocf::heartbeat:IPaddr2) Started
Node hanode2: online
vip1:1 (ocf::heartbeat:IPaddr2) Started
* Node hanode1:
* Node hanode2:
Linux-HA mailing list
Linux-HA [at] lists
See also: http://linux-ha.org/ReportingProblems