Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Apache Tomcat Load Balancing problem

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Tomcat forum.
 
Run away! Run away! Here, take this tiny ad with you:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic