I noticed that you had lb_factor=50 for one node and lb_factor=100 for the other. I may be wrong here (I haven't used jk2 for load balancing, but i skimmed the docs) -- are the lb factors supposed to add up to 100?
How are you stress testing? Does your test tool establish new HTTP sessions? If not, all requests will be routed to the node to which the one session is bound (sticky sessions).
I have successfully setup Apache 1.3.27 + ModSSL and ModJK, connecting to JBoss 3.2.1 with Jetty. The load balancing works ok, I think I had a lbfactor of 5 and 10. One simple test you can perform, is to hit the webpages continously with a browser (or an automated tool)..and stutdown the primary Jboss server, all the traffic should automatically failover to the second, although sessions will be lost if you don't have session replication turned on (I didn't). If this is of any use to you, I can get more detailed configuration information for you.
I'm using Microsoft Web Application Stress Tool. I think it uses new HttpSession for every hit to the system.
You need to make sure that's the case. Your system is behaving as it should if there is one session. You said failover is working, which I assume means the LB will route new sessions to a good node if one node is dropped. If that's the case, JK2 is probably working. As far as I can see, workers2.properties looks fine.
You can make sure the session LB works simply by using a browser. As a test, set your lb_factors to the same value. I don't think it matters what that number is (just not zero). They are normalized to each other, IIRC. So w/ 100 & 50, the 100 will get 2x the requests as the 50. Then access the application from a browser, then login to the app from another machine, or another browser on the same machine (IE, then Mozilla). Those sessions should get established on two different nodes.
Does your jvmRoute in jboss-service.xml match the respective tomcatId?
I have a similar config working here (except it's JBoss 3.2.2). I'd be happy to share config files.
Thanks for the reply. I've set the tomcatId as same as jvmRoute in jboss-service.xml. I'll try new test using your test scenario.
Would you please to teach me how to enable session replication?
I can setup Apache2+Jk2+JBoss-Tomcat in Load Balance.
But I don't know how to keep the session?
my setup is working fine only that i did not specify
the group properties in the ff.