tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: tomcat cluster for stateless web application
Date Thu, 14 Jun 2012 18:49:53 GMT
Hash: SHA1


On 6/13/12 8:12 AM, Pid * wrote:
> On 12 Jun 2012, at 18:22, Albert Kam <>
> wrote:
>> I've noticed that in the documentation, it says a lot about
>> session replication.
>> I wonder what can be omitted in the configurations for a
>> stateless java webapp setup (without any sessions), to hopefully
>> get a simpler configuration or even gain more efficiency, 
>> bypassing the replication altogether ?
> Well, start by not configuring the cluster. That should be enough.


Formal "clustering" (in Tomcat) is only useful for session
replication. If you don't need session replication, all you need is a
load balancer, and you don't really even need to configure it other
than to say "balance these backend servers in some way (rr,
load-based, request-based, etc.).

If you are using Apache httpd with mod_jk, then you just need an "lb"
worker with balance_workers set to all the backend workers, and
disable sticky sessions (because the default is to use sticky
sessions, but you aren't creating sessions, anyway, right?).

- -chris
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools -
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message