1 Reply Latest reply on Jul 26, 2013 1:25 PM by pferraro

    Issue with Mod_cluster Load Balancing

    bsudhananthan

      I'm trying to achieve client load balancing using apache httpd. My development environment consist of JBOSS EAP 6.1.0 and Mod_cluster 1.2.0.

       

      I can able to access the application using the proxy address http://192.168.27.109:6666/ . But the http request which have been sent not getting splitted across the balancing members (node1 and node2). It always goes to member which have been first joined in the Load Balancer group.

      Note:node1 and node2 are hostnames of the two loadbalancer members.

       

      Below is the httpd configuration

      <IfModule manager_module>

        Listen 192.168.27.109:6666

        ManagerBalancerName mycluster

        <VirtualHost 192.168.27.109:6666>

          <Location />

           Order deny,allow

           Deny from all

           Allow from 192.168.27

           ProxyPass balancer://mycluster/ stickysession=JSESSIONID

           ProxyPassReverse balancer://mycluster/

          </Location>

       

       

          KeepAliveTimeout 60

          MaxKeepAliveRequests 0

          EnableMCPMReceive

          ServerAdvertise On

          AdvertiseSecurityKey secret

       

          <Location /mod_cluster_manager>

             SetHandler mod_cluster-manager

             Order deny,allow

             Deny from all

             Allow from 192.168.27

          </Location>

       

          <Proxy balancer://mycluster>

            Order deny,allow

            Allow from all

            BalancerMember http://node1:8080 route=node1 retry=60

            BalancerMember http://node2:8080 route=node2 retry=60

          </Proxy>

       

        </VirtualHost>

      </IfModule>

       

      And in Jboss standalone-full-ha.xml:

       

                     <mod-cluster-config advertise-socket="modcluster" advertise-security-key="secret" connector="http" proxy-list="192.168.27.109:6666" balancer="mycluster" advertise="false"

                                                        excluded-contexts="default-host:MDemo,invoker,jbossws,juddi,console" sticky-session="true">

                      <dynamic-load-provider history="9" decay="2">

                          <load-metric type="requests"/>

                      </dynamic-load-provider>

       

                  </mod-cluster-config>

       

       

       

      Thanks,

      Sudhananthan B.

        • 1. Re: Issue with Mod_cluster Load Balancing
          pferraro

          Are these test requests performed simultaneously?  mod_cluster doesn't balance requests in a round robin fashion.  There is no need to balance sequential requests since the load of each node at the time the request is received by the load balancer is effectively zero!