8 Replies Latest reply on Nov 28, 2003 3:41 PM by aalmero

    Apache2+Tomcat+Mod_Jk2 doesn't load balance?

    xavi78 Newbie


      Hi all,

      I have 2 machine. 1 has 1 Apache2 and 1 JBoss 3.2.1. The other has 1 JBoss3.2.1. All machines use RedHat Linux. I've managed to get the two JBoss clustered and also connected to Apache using JK2. And yes, I've already add jvmRoute to my jboss-tomcat.

      I'm doing stress test to my application. From what I saw, the requests always redirect to 1 JBoss only. The load balancing doesn't work although the failover works correctly.

      Can anyone help me out with this. Any help will be greatly appreciated.

      xavi

      Here's the content of my workers2.properties:

      [shm:]
      file=/usr/local/apache2/logs/jk2.shm
      size=1048576

      [lb:lb_01]
      info=Default Load Balancer.
      debug=1
      stickySession=1

      [channel.socket:server1:8009]
      info=Ajp13 forwarding over socket
      tomcatId=node1
      lb_factor=50
      group=lb_01
      disabled=0


      [channel.socket:server2:8009]
      info=Ajp13 forwarding over socket
      tomcatId=node2
      lb_factor=100
      group=lb_01
      disabled=0

      [uri:/*]
      group=lb_01
      debug=1

      [logger]
      level=INFO

      [config:]
      file=/usr/local/apache2/conf/workers2.properties
      debug=1
      debugEnv=0