[Pacemaker] Configure simple Network Load-balancing

Ratko Dodevski rade239 at gmail.com
Fri Nov 30 07:15:42 EST 2012

Hi guys, I need some help on configuring NLB for my application servers.
I've installed tomcat on 4 servers and I've decided to use Linux HA for
Network Load Balancing, but is seems like all the connections are going
only to one of the servers (app-node-1). Can someone tell me what I'm doing
wrong? It's pretty simple config, just one clone resource (IPaddr2) running
on all nodes. Also, can someone tell me how is NLB done? based on source
IP, IP hash or... I need Round Robbin NLB.

app-node-1:/ # crm configure show
node app-node-1
node app-node-2
node app-node-3 \
        attributes standby="on"
node app-node-4
primitive tomcat_ip ocf:heartbeat:IPaddr2 \
        params ip="X.X.X.X" cidr_netmask="24" nic="eth0" \
        op monitor interval="30s" \
        meta target-role="started"
clone nlb_ip tomcat_ip \
        meta globally-unique="true" clone-max="4" clone-node-max="1"
property $id="cib-bootstrap-options" \
        dc-version="1.1.2-2e096a41a5f9e184a1c1537c82c6da1093698eb5" \
        cluster-infrastructure="openais" \
        expected-quorum-votes="4" \
        stonith-enabled="false" \
        no-quorum-policy="ignore" \
rsc_defaults $id="rsc-options" \

Last updated: Fri Nov 23 01:57:49 2012
Stack: openais
Current DC: app-node-1 - partition with quorum
Version: 1.1.2-2e096a41a5f9e184a1c1537c82c6da1093698eb5
4 Nodes configured, 4 expected votes
1 Resources configured.

Online: [ app-node-1 app-node-4 app-node-2 ]
OFFLINE: [ app-node-3 ]

 Clone Set: nlb_ip (unique)
     tomcat_ip:0        (ocf::heartbeat:IPaddr2):       Started app-node-1
     tomcat_ip:1        (ocf::heartbeat:IPaddr2):       Started app-node-2
     tomcat_ip:2        (ocf::heartbeat:IPaddr2):       Started app-node-4
     tomcat_ip:3        (ocf::heartbeat:IPaddr2):       Stopped

Thanks and regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20121130/a5d535f5/attachment-0002.html>

More information about the Pacemaker mailing list