-
1. Re: Load Balancing Not Working
rhusar Mar 8, 2012 10:36 AM (in response to jmascreen)This is because you created a session and that session is sticky. So it will always go to that node.
mod_cluster comes with nice load balancing demo which creates session but reuses them after while. It shows nice graphs as well. Its bundled with distribution.
I have a sample application that when you query a simple servlet, it tells you how many times you called it so that you can know whether the session is as you expected it to be: https://github.com/rhusar/clusterbench
Rado
-
2. Re: Load Balancing Not Working
belaban Mar 8, 2012 10:48 AM (in response to rhusar)You could also set <mod-cluster-config ... sticky-session="false"/> to spray your requests over the instances
-
3. Re: Load Balancing Not Working
jmascreen Mar 8, 2012 11:02 AM (in response to belaban)I tried it and its working partialy. I had opened a browser and hit the url for SuperSnoopWeb and i got the bind address of first node and when i refreshed it went to second node. the problem here is if i open from another browser the request goes to the first server only, instead of second node. Please help me out
-
4. Re: Load Balancing Not Working
jmascreen Mar 8, 2012 11:23 AM (in response to rhusar)Where to set the weightage for round robin method in mod_cluster/jboss-5.1.1 ?