-
1. Re: Tomcat6 LoadMetrics
sudheerk84 Oct 19, 2010 5:15 AM (in response to magi)I too have the same doubt , as i have tried with 2 tomcats and all the requests(tried around 4 to 5 requests sequentially) are going to tomcat1.
When i shutdown tomcat1 requests go to tomcat2.
-
2. Re: Tomcat6 LoadMetrics
pferraro Oct 19, 2010 9:31 PM (in response to magi)Yes - the default load metric is BusyConnectorsLoadMetric. Yes, 76 is the load factor. The load factor is a value between 0 and 100. The greater the number (relative to the other), the more load that node will receive.
-
3. Re: Tomcat6 LoadMetrics
pferraro Oct 19, 2010 10:56 PM (in response to sudheerk84)mod_cluster doesn't use round robin balancing, but instead balances based on load. If you never have simultaneous requests, then there is nothing to balance. Try sending concurrent requests - then you should see your second node getting utilized.
-
4. Re: Tomcat6 LoadMetrics
magi Oct 20, 2010 4:46 AM (in response to pferraro)Documentations says:
So, how is it in real?
-
5. Re: Tomcat6 LoadMetrics
pferraro Oct 20, 2010 10:07 AM (in response to magi)Note, I have not contradicted the documentation. A load factor of 100 indicates that the node is under no load. A load factor of 0 indicates that the node is under max load. So, in this extreme scenario, the load balancer will send future requests to the node with the load factor of 100. In general, the greater the load factor, the more likely the load balancer will direct requests to that node.
-
6. Re: Tomcat6 LoadMetrics
magi Oct 20, 2010 6:42 PM (in response to pferraro)Thanks for the reply:-)
I still don't understand mod_cluster_manager, which monitors my nodes - it points the 'Load' is set on:100(on both nodes).
Loadfactor sent by loadbalancer every 5 seconds is set to 76. How to compute it?
Documentations says "Load: (Number) Load factor received via the STATUS messages." - so, value in status messages should be the same as reported via mod_cluster_manager monitor. What causes the difference?
As it stands, I also don't know how to set Smax parameter in Tomcat AS.