<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body 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<br>
    <br>
    <div class="moz-cite-prefix">On 11/30/12 7:15 AM, Ratko Dodevski
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPQeiy+9UfFx2UvmwHVEYcpOgmUEJga2crBh=TWjLgvhnvg4nQ@mail.gmail.com"
      type="cite">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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Pacemaker mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>

Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>