• 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

About load balancing

 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you people say about connecting apache with tomcat using JK1.2.8?

Is load balancing really needed with Tomcat 5.0.x or Tomcat 5.5.x? or mod_proxy would be enough? or nothing really needed?

Have searched it and found positive answers as well. Waiting for Ben's reply especially, as we have talked over it a bit sometimes back.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Adeel Ansari:
Is load balancing really needed with Tomcat 5.0.x or Tomcat 5.5.x? or mod_proxy would be enough? or nothing really needed?


The question of whether load balancing is needed with {your application server} does not make sense without knowledge of how well a single instance of {your application server} manages the load you're expecting to get.

If the single server instance is not enough, you need more instances. Simple as that. And once you reach the point where you need more than one instance, then you need load balancing for directing incoming requests to your multiple instances.
 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How efficient is load balancing in Apache/Tomcat as opposed to other servers like WebSphere etc.?

Any pros & cons when compared with other application servers?
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you put Apache server in front of your Tomcat servers, you can use mod_jk's load-balancing capabilities or mod_proxy.

For load balancing in Tomcat, see below:


Tomcat 5.0.15 and later ships with a webapp named balancer. This is a simple implemention of a rules-based load balancer. It was not designed as a replacement for other load-balancing mechanisms used for high traffic environments. Rather, it is a simple, pure Java, easily extensible, and fast way to direct traffic among multiple servers.

Although balancer ships with Tomcat, it is not Tomcat-specific and runs on other containers without any modification. The balancer webapp requires a Servlet Specification 2.3 or later container if you wish to use a filter to redirect traffic. If you wish to redirect traffic using a servlet, you may use any servlet container.


[ March 03, 2005: Message edited by: Surasak Leenapongpanit ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Surasak Leenapongpanit:
If you put Apache server in front of your Tomcat servers, you can use mod_jk's load-balancing capabilities or mod_proxy.



Thanks Surasak. I knew all these things. I have asked, would it really effective or not.

Thanks Lasse Koskela for the input. Right now our app is running liek champ, just worrying for the future loads.
 
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try some load tests and you will see how your application will be ready for higher load.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by David Ulicny:
Try some load tests and you will see how your application will be ready for higher load.



Yeah started doing that.
Thanks for your advice, David.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic