my dog learned polymorphism*
The moose likes Tomcat and the fly likes Basic Clustering Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Basic Clustering Question" Watch "Basic Clustering Question" New topic
Author

Basic Clustering Question

Myles Verbgerund
Greenhorn

Joined: May 30, 2011
Posts: 2
Hello! First post here. I'm trying to hone my Tomcat skills, so I decided to play around with clustering and load balancing a bit.

I just set up Apache 2.2 with mod_jk as a load balancer to two Tomcat 6 servers. The Tomcat 6.0 docs say to set sticky_session to true for the load balancing worker. What's the point of session replication within the Tomcat cluster if the load balancer has to be configured for sticky sessions? Am I missing something?

I tested the setup using jforum, and the only way sessions work properly is if the load balancer is maintaining sticky sessions. Again, what's the point of the cluster (and session replication)? Couldn't I get the same result with two unclustered Tomcat instances?

Thanks again for indulging a novice!

All the best,
Myles
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic Clustering Question
 
Similar Threads
Axis Web Service on Apache/Tomcat
configure tomcat or apache to share a common session
Opinion about Weblogic clustering
How to route requests to a managed server
Session Affinity