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

    Issue with Mod_cluster Load Balancing

    sudhananthan B Newbie

      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 . 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>


        ManagerBalancerName mycluster


          <Location />

           Order deny,allow

           Deny from all

           Allow from 192.168.27

           ProxyPass balancer://mycluster/ stickysession=JSESSIONID

           ProxyPassReverse balancer://mycluster/




          KeepAliveTimeout 60

          MaxKeepAliveRequests 0


          ServerAdvertise On

          AdvertiseSecurityKey secret


          <Location /mod_cluster_manager>

             SetHandler mod_cluster-manager

             Order deny,allow

             Deny from all

             Allow from 192.168.27



          <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






      And in Jboss standalone-full-ha.xml:


                     <mod-cluster-config advertise-socket="modcluster" advertise-security-key="secret" connector="http" proxy-list="" 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"/>








      Sudhananthan B.