1 Reply Latest reply on Jun 3, 2012 3:35 AM by hakim jamali

    Jboss 7.1.1 with webserver on seperate box

    Masiuddin Mohammed Newbie

      Initially we were having two seperate servers in our setup:

      10.10.0.2 appserver1    JBoss-AS 7.1.1 and  webserver    Apache

      10.10.0.3 appserver2    JBoss-AS 7.1.1

       

      We followed https://docs.jboss.org/author/display/AS71/AS7+Cluster+Howto to do cluster setup and things worked perfectly fine.

       

       

      Now I want to have following setup:

      10.10.0.1 webserver    Apache

      10.10.0.2 appserver1    JBoss-AS 7 .1.1

      10.10.0.3 appserver2    JBoss-AS 7.1.1

       

      What changes need to be done in httpd.conf and in JBOSS configugation?

       

      Thanks & Regards,

      Mohammed Masiuddin

        • 1. Re: Jboss 7.1.1 with webserver on seperate box
          hakim jamali Newbie

          Hi,

           

          Please do the following to make apache as independent server :

           

          1. In your jboss master's domain.xml replace <subsystem xmlns="urn:jboss:domain:modcluster:1.0">
          </subsystem> with  the following :

           

          <subsystem xmlns="urn:jboss:domain:modcluster:1.0">
                          <mod-cluster-config advertise-socket="modcluster" proxy-list="10.10.0.1:port">
                              <dynamic-load-provider>
                                  <load-metric type="busyness"/>
                              </dynamic-load-provider>
                          </mod-cluster-config>
          </subsystem>

           

          this will tell the master that it has to get registered to apache located at the following address:port.

           

          Similarly all the slave host use the Master domain.xml, so they will also get registered to the mod cluster service.