[Pacemaker] Configure simple Network Load-balancing

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


Probably, but HA is already the solution in place so I have to use-it. Now
there are around 200 clients but it will grow up till 3000 in the next two
months. Servers have Tomcat installed on them, so basically I need to load
balance connections from outside to the Tomcat.

Regards


On Fri, Nov 30, 2012 at 1:19 PM, David Coulson <david at davidcoulson.net>wrote:

>  All the connections, from how many clients?
>
> You might be better off using LVS for this.
>
> David
>
>
> On 11/30/12 7:15 AM, Ratko Dodevski wrote:
>
> 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" \
>         last-lrm-refresh="1333954979"
> rsc_defaults $id="rsc-options" \
>         resource-stickiness="100"
>
>  ============
> 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
>
>  --
> Ratko
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.orghttp://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
>
>


-- 
Ratko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20121130/ac3dbd6d/attachment-0003.html>


More information about the Pacemaker mailing list