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 
> agent.
> 
> With this setup you even can use the state table sync feature of LVS.
> 
> Greetings,
> 

Michael,

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 
all.

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" 
interleave="true" target-role="Started"

Cluster Status:

============
Last updated: Sat May 12 15:08:00 2012
Stack: openais
Current DC: hanode1 - partition with quorum
Version: 1.1.2-2e096a41a5f9e184a1c1537c82c6da1093698eb5
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

Inactive resources:


Migration summary:
* Node hanode1:
* Node hanode2:

Regards,

John S.

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to