1 Reply Latest reply on Oct 3, 2011 7:45 PM by djangofan

    How does jkstatus work in a load-balanced + clustered scenerio?

    djangofan

      I am trying to understand how I might configure the mod-jk  /jkstatus (or /jkmanager) app in a scenerio where 1 instance of Apache is load balancing between 2 JBoss instances.  I can't find a single example anywhere on the internet of setting up jkstatus in a apache load-balanced scenerio.

       

      So,  I have a httpd.conf like this:

       

      <Proxy balancer://ajpcluster>    

        BalancerMember ajp://test.local.host:8109    

        BalancerMember ajp://test.local.host:8209  

      </Proxy>

      <Location /jconsole> 

        ProxyPass balancer://ajpcluster/jconsole stickysession=JSESSIONID|jsessionid nofailover=On

        ProxyPassReverse balancer://ajpcluster/jconsole

      </Location>

      <Location /status>  ## tomcat /status is not to be confused with Apache /jkstatus

        ProxyPass balancer://ajpcluster/status stickysession=JSESSIONID|jsessionid nofailover=On

        ProxyPassReverse balancer://ajpcluster/status

      </Location>

       

      This being the case, I also configured my mod-jk.conf like this:

       

      JkMount /*.jsp loadbalancer   # apache load balancer worker is independent of jkstatus worker

      JkMount /jkmanager jkstatus

      JkMount /jkmanager/* jkstatus

      <Location /jkmanager>

        JkMount jkstatus

        Order deny,allow

        Deny from all

        Allow from all

      </Location>

       

      Now, this doesn't work, and I am trying to understand why.  I get an error in my jk log that says:

       

      jk_translate::mod_jk.c (3434):missing uri map for test.local.host:/jkmanager
      jk_map_to_storage::mod_jk.c (3593):missing uri map for test.local.host:/
      jkmanager
       

       

       

      But my uriworkermap.properties file has this:

       

      /jconsole|/*=loadbalancer
      /jkmanager =jkstatus

       

      So, can anyone tell me what I should do?