• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache Tomcat Load Balancing problem

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the Tomcat forum.
 
The happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic