1 Reply Latest reply on Jan 31, 2014 9:16 AM by rhusar

    Modcluster with TCP

    marcusdidiusfalco

      Hello I am trying set up a simple Loadbalancing.

      Windows 7, JBoss EAP 6.0

      Apache from XAMPP v3.2.1

      I have a server group with two servers using ha profile.

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

                      <mod-cluster-config advertise-socket="modcluster" proxy-list="127.0.0.1:80" balancer="mybalancer" advertise="false" connector="ajp">

                          <dynamic-load-provider>

                              <load-metric type="busyness"/>

                          </dynamic-load-provider>

                      </mod-cluster-config>

                  </subsystem>

      I have copied the files

      mod_advertise.so

      mod_manager.so

      mod_proxy_cluster.so

      mod_slotmem.so

      to C:\xampp\apache\modules

      and modcluster.conf

      to

      C:\xampp\apache\conf\

       

      When I start the JBoss Servers I get on both servers

      [Server:production-server-B] 14:28:24,160 ERROR [org.jboss.modcluster.mcmp.impl.

      DefaultMCMPHandler] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Er

      ror [null: null: {4}] sending command INFO to proxy 127.0.0.1/127.0.0.1:80, conf

      iguration will be reset

       

      I cannot find any errors in the apache logs.

       

      When I point the browser to 127.0.0.1:80 I can see the xampp homepage, when I point it to http://127.0.0.1/cluster_test/ I get Object not found.

       

      Any help would be appreciated,

       

      Hans

        • 1. Re: Modcluster with TCP
          rhusar

          That configuration does not seem right. You don't want to receive MCMP commands on the port 80, which is exposed to public. You want to have another port that is open and restricted only to your internal network, where the management commands will be received.

           

          Here is a sample debug configuration (httpd 2.4.6) post yours or try to see if you aren;t missing something:

           

          https://gist.github.com/rhusar/dcb85f5f69a70a60324f

          Disclaimer: do not use this configuration in production!