0 Replies Latest reply on Jan 17, 2018 8:45 AM by Frédéric Gourmand

    Mod Cluster with 2 Apache and 2 JBOSS

    Frédéric Gourmand Newbie


      I have Jbosseap7 and Apache2.4


      I defined one apache with 2 jboss slaves   (3 differents windows and the master is on the same windows that apache)  with mod_cluster and it works fine with a socket binding group in domain.xml (see step 1)


      I want to add an apache, so i copy the same httpd.conf(i changed ip) , i define a proxy list in domain.xml but it doesn't work. (with proxy list, i deleted the socket binding group (see step 2) )

      after i activated serveradvertise but still nok


      Here is my config (step 1) and after my config step 2


      Step 1 : ok :


      httpd.conf :


      LoadModule proxy_cluster_module modules/mod_proxy_cluster.so

      LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so

      LoadModule manager_module modules/mod_manager.so

      LoadModule advertise_module modules/mod_advertise.so

      MemManagerFile cache/mod_cluster

      <IfModule manager_module>


      ManagerBalancerName clusterprd


          <Directory />

          # add ip of JBoss nodes to join this proxy here

         Require ip

         Require ip


          ServerAdvertise off


        ErrorLog E:/Apache/logs/mod_cluster_error.log 

          CustomLog E:/Apache/logs/mod_cluster_access.log combined

          <Location /mod_cluster_manager>

          SetHandler mod_cluster-manager

          # add ip of clients allowed to access mod_cluster-manager

          Require ip

        Order deny,allow

        Deny from all

        Allow from 172.24.247





      and i add in domain.xml of the master the ip of the apache :



      <subsystem xmlns="urn:jboss:domain:modcluster:2.0">

      <mod-cluster-config advertise-socket="modcluster" proxies="apacheprd" connector="ajp">


      <load-metric type="cpu"/>







      <outbound-socket-binding name="apacheprd">

      <remote-destination host="" port="6666"/>







      Step 2 :


      Two httpd as above



      domain.xml : i define a proxy list with ip of the apaches


      <subsystem xmlns="urn:jboss:domain:modcluster:2.0">

      <mod-cluster-config advertise-socket="modcluster" proxy-list="," connector="ajp">


      <load-metric type="cpu"/>





      but i doesn't works



      So , is there something to add in domain.xml  to join apaches ?