I am using apache server as a front end load balancer with tomcat6 servers. I am using lbmethod configuration for making all the requests from one client going to same tomcat always.
<VirtualHost *:1000>
ServerAdmin webmaster@dummy-host.example.co
#DocumentRoot /www/docs/dummy-host.example.com
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/ lbmethod=byrequests nofailover=On
ProxyPassReverse / balancer://mycluster/
<Proxy balancer://mycluster>;
BalancerMember ajp://localhost:8101/ route=NodeA1000 retry=10
BalancerMember ajp://localhost:8102/ route=NodeB1000 retry=10
BalancerMember ajp://localhost:8103/ route=NodeC1000 retry=10
BalancerMember ajp://localhost:8104/ route=NodeD1000 retry=10
BalancerMember ajp://localhost:8105/ route=NodeE1000 retry=10
</Proxy>
I have 5 tomcats in the back-end. But instead of all requests from the same client going to same tomcat, the requests are load-balanced. Am I missing anything here?