jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Basic Clustering Question" Watch "Basic Clustering Question" New topic

Basic Clustering Question

Myles Verbgerund

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,
I agree. Here's the link: http://aspose.com/file-tools
subject: Basic Clustering Question
jQuery in Action, 3rd edition