Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clustering Tomcat... Any thoughts?

 
Ravi Sathish
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys
I know there's a lot of information on this; But i would dearly appreciate if someone threw light on these issues:
Tomcats can be clustered for load-balancing and apache http server can do it. The documents say so:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/balancer-howto.html
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
so far so good:
But in balancer-howto.html:
Apache 2 configuration the autors mention:
First we must create a rewrite map (for mod_rewrite) (balancing.conf):
LB1 tomcat1.foo.com:8080
LB2 tomcat2.foo.com:8080
LB3 tomcat3.foo.com:8888
ALL tomcat1.foo.com:8080|tomcat2.foo.com:8080|tomcat3.foo.com:8888
Where can I find this balancing.conf?
Has anybody tried these things
TIA
Ravi
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first thing ( I think ) to be absolutely clear on is:

are you using Tomcat stand-alone or Apache, connected to Tomcat, through a connector?

That will mostly dictate how you proceed to load-balance and cluster your tomcat install.
 
Ravi Sathish
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about not backing to you.
Yes I am trying to use apache 2.0 as load balancer.
I have 2 instances of tomcat listening on ports 11009 and ports 12009 repsectively.
I have connected them with apache usinhg mod_jk2
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic