<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I would add HA to your existing HA config - The primary issue you
have right now is that if tomcat is down, broken or needs to be
disabled you don't have a good way of doing that automatically.<br>
<br>
My implementations for this type of application are pacemaker +
ldirectord + LVS. Since you have a 15x increase in number of
clients, now is a good time to argue the business case for something
more robust than CLUSTERIP.<br>
<br>
David<br>
<br>
<div class="moz-cite-prefix">On 11/30/12 7:30 AM, Ratko Dodevski
wrote:<br>
</div>
<blockquote
cite="mid:CAPQeiyKNQU7FEaUOuONX6i892iVHLjZ+1z3ySiC+g-KD78rx-A@mail.gmail.com"
type="cite">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.
<div>
<br>
</div>
<div>Regards</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Nov 30, 2012 at 1:19 PM, David
Coulson <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:david@davidcoulson.net" target="_blank">david@davidcoulson.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> All the connections,
from how many clients?<br>
<br>
You might be better off using LVS for this.<br>
<br>
David
<div>
<div class="h5"><br>
<br>
<div>On 11/30/12 7:15 AM, Ratko Dodevski wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">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.<br>
<div class="gmail_quote">
<div> <br>
</div>
<div>
<div>app-node-1:/ # crm configure show</div>
<div>node app-node-1</div>
<div>node app-node-2</div>
<div>node app-node-3 \</div>
<div> attributes standby="on"</div>
<div>node app-node-4</div>
<div> primitive tomcat_ip ocf:heartbeat:IPaddr2
\</div>
<div> params ip="X.X.X.X"
cidr_netmask="24" nic="eth0" \</div>
<div> op monitor interval="30s" \</div>
<div> meta target-role="started"</div>
<div>clone nlb_ip tomcat_ip \</div>
<div> meta globally-unique="true"
clone-max="4" clone-node-max="1"</div>
<div>property $id="cib-bootstrap-options" \</div>
<div>
dc-version="1.1.2-2e096a41a5f9e184a1c1537c82c6da1093698eb5"
\</div>
<div> cluster-infrastructure="openais" \</div>
<div> expected-quorum-votes="4" \</div>
<div> stonith-enabled="false" \</div>
<div> no-quorum-policy="ignore" \</div>
<div> last-lrm-refresh="1333954979"</div>
<div>rsc_defaults $id="rsc-options" \</div>
<div> resource-stickiness="100"</div>
</div>
<div><br>
</div>
<div>
<div>============</div>
<div>Last updated: Fri Nov 23 01:57:49 2012</div>
<div>Stack: openais</div>
<div>Current DC: app-node-1 - partition with
quorum</div>
<div>Version:
1.1.2-2e096a41a5f9e184a1c1537c82c6da1093698eb5</div>
<div>4 Nodes configured, 4 expected votes</div>
<div>1 Resources configured.</div>
<div>============</div>
<div><br>
</div>
<div>Online: [ app-node-1 app-node-4 app-node-2
]</div>
<div>OFFLINE: [ app-node-3 ]</div>
<div><br>
</div>
<div> Clone Set: nlb_ip (unique)</div>
<div> tomcat_ip:0
(ocf::heartbeat:IPaddr2): Started
app-node-1</div>
<div> tomcat_ip:1
(ocf::heartbeat:IPaddr2): Started
app-node-2</div>
<div> tomcat_ip:2
(ocf::heartbeat:IPaddr2): Started
app-node-4</div>
<div> tomcat_ip:3
(ocf::heartbeat:IPaddr2): Stopped</div>
</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div>Thanks and regards</div>
</div>
</div>
<div><br>
</div>
-- <br>
Ratko<br>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Pacemaker mailing list: <a moz-do-not-send="true" href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a>
<a moz-do-not-send="true" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>
Project Home: <a moz-do-not-send="true" href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a>
Getting started: <a moz-do-not-send="true" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a moz-do-not-send="true" href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Ratko<br>
</div>
</blockquote>
<br>
</body>
</html>