We have configured Apache Webserver to load balance 3
tomcat instancees using mod_jk module.
The worker of type ajp13 is used and the AJP13Connector in server.xml is configured to receive the requests.
Our requirement is that each tomcat instance should receive a maximum of 5 concurrent requests only.
In the workers.properties, for each worker the load balancing factor(lbfactor) is kept the same and is equal to 100.
In server.xml, Ajp13Connector is configured to have minProcessors=5, maxProcessors=5
But the problem is that apache is not load balancing the requests properly. sometimes 6 requests
are forwarded to one tomcat and 4 to another. Apache seems to use round-robin algorithm for load-balancing.
we need a mechanism that can load balance properly or if a 6th concurrent request comes, it should be queued, and proccesed later.we have tried setting the acceptCount parameter also.
We are using HP-UX Apache-based Web Server A.1.0.03 and Tomcat 4.1.12. Our application is running in HP-UX B11.11.
Please do let us know the solution to the above problem.