1 Reply Latest reply on Aug 5, 2013 10:18 PM by Ben Schofield

    Session replication in Jboss 7.2.0 using mod cluster

    Sunil D Newbie

      Hi All,


      I am trying to configure load balancer using mod cluster in jboss 7.2.0 in domain mode. I am following the article below.



      I was able to configure the load balancer in domain mode in Same box. When i access the cluster Web app using individual IP addresses like




      it shows the results correctly.


      Now i am testing the session replication scenario. that is submit the request using load balanced url http://jboss.localhost.net/ClusterWebApp


      the request is routed to one of the server. then i am shutind down that server and access the app to see if the seccion is replaicated to second server or not.


      I see following error in httpd logs . No error in jboss console


      [error] proxy: CLUSTER: (balancer://wingspancluster). All workers are in error state.


      Any idea what causes the error? and how to resolve the issue.


      Hi All,

      I am using apache httpd 2.2.9 version and mod cluster 1.2.0

      from internet i could see that mod cluster 1.2.0 is supported in httpd 2.2.8+ version.

      Please help me on this. here is my configuration

      LoadModule proxy_module modules/mod_proxy.so
      LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
      LoadModule proxy_http_module modules/mod_proxy_http.so

      LoadModule slotmem_module modules/mod_slotmem.so
      LoadModule manager_module modules/mod_manager.so
      LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
      LoadModule advertise_module modules/mod_advertise.so

      ServerName jboss.localhost.net
      <Directory />
        Order deny,allow
        Allow from all
      <Location /mod_cluster-manager>
        SetHandler mod_cluster-manager
        Order deny,allow
        Allow from all
                KeepAliveTimeout 60
                ManagerBalancerName mycluster
                ServerAdvertise On

      Following changes were done in domain.xml file.

      1. added instance id

      2. added proxy-list entry

        • 1. Re: Session replication in Jboss 7.2.0 using mod cluster
          Ben Schofield Novice

          JBoss 7.2 was the basis for Redhat's EAP 6.1.  Their supported stack is Apache 2.2.22 with mod_cluster 1.2.4.  You will most likely get better results with those versions as it is a newer and tested configuration.


          As for the error, if all the workers are in an error state it means apache thinks all of your JBoss instances are down and it can't proxy the request to JBoss.  Check the mod_cluster-manager web page and make sure both of your JBoss instances along with the deployed webapps are registering with mod_cluster correctly and they are using the same balancer.  You can enable debugging in apache to see the JBoss nodes registering with mod_cluster in Apache.