<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>You probably want to direct that question to the iptables mailing list.</div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Nov 30, 2012, at 9:54 AM, Ratko Dodevski wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Can someone tell me how <span style="font-family:arial,sans-serif;font-size:13px">CLUSTERIP works? Because from what I can see, a get all the connections to one server and after some time all the connections go to other server etc... Is it something wrong with my configuration or that's the way it's working?</span><div>

<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks and regards</span></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Fri, Nov 30, 2012 at 1:36 PM, David Coulson <span dir="ltr"><<a 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">
    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.<span class="HOEnZb"><font color="#888888"><br>
    <br>
    David</font></span><div><div class="h5"><br>
    <br>
    <div>On 11/30/12 7:30 AM, Ratko Dodevski
      wrote:<br>
    </div>
    <blockquote 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 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><br>
                  <br>
                  <div>On 11/30/12 7:15 AM, Ratko Dodevski wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div>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 href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>

Project Home: <a href="http://www.clusterlabs.org/" target="_blank">http://www.clusterlabs.org</a>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a 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>
  </div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ratko<br>
</div>
</blockquote></div><br></body></html>