Hi, I have a two node cluster (JBoss-5.1.1) which is been load balancing with mod_cluster 1.2.0 Final. When i start both the nodes i can see 2 nodes under partition, but when i use SuperSnoopWar all the request goes to the first server only, how do i set the round robin and also let me know for any sample application for testing session replication between both the nodes.
Thanks in Advance
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
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