tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: tomcat cluster for stateless web application
Date Thu, 14 Jun 2012 18:49:53 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pid,

On 6/13/12 8:12 AM, Pid * wrote:
> On 12 Jun 2012, at 18:22, Albert Kam <moonblade.wolf@gmail.com>
> 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.

+1

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/aMlEACgkQ9CaO5/Lv0PCeMQCdE+HGy3kapLL80s5tPH3b6SQr
lgUAoMFY5UNxjThMy4WQh1GmRVA/AuLL
=g9fq
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message