-
1. Re: Apache2+Tomcat+Mod_Jk2 doesn't load balance?
camel Oct 14, 2003 11:56 PM (in response to xavi78)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?
-
2. Re: Apache2+Tomcat+Mod_Jk2 doesn't load balance?
mikefinn Oct 27, 2003 10:10 AM (in response to xavi78)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).
Mike -
3. Re: Apache2+Tomcat+Mod_Jk2 doesn't load balance?
mmcnamee Oct 28, 2003 3:05 PM (in response to xavi78)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.
Mark -
4. Re: Apache2+Tomcat+Mod_Jk2 doesn't load balance?
xavi78 Nov 4, 2003 9:25 PM (in response to xavi78)I'm using Microsoft Web Application Stress Tool. I think it uses new HttpSession for every hit to the system.
-
5. Re: Apache2+Tomcat+Mod_Jk2 doesn't load balance?
mikefinn Nov 5, 2003 6:16 AM (in response to xavi78)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.
Mike -
6. Re: Apache2+Tomcat+Mod_Jk2 doesn't load balance?
xavi78 Nov 12, 2003 9:18 PM (in response to xavi78)
Hi,
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.
thanks -
7. Re: Apache2+Tomcat+Mod_Jk2 doesn't load balance?
ericmacau Nov 13, 2003 8:04 AM (in response to xavi78)Hi Mark,
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?
Eric -
8. Re: Apache2+Tomcat+Mod_Jk2 doesn't load balance?
aalmero Nov 28, 2003 3:41 PM (in response to xavi78)my setup is working fine only that i did not specify
the group properties in the ff.
[uri:/*]
debug=1
aalmero