Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE3FB98CA for ; Thu, 14 Jun 2012 18:50:26 +0000 (UTC) Received: (qmail 59001 invoked by uid 500); 14 Jun 2012 18:50:23 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 58944 invoked by uid 500); 14 Jun 2012 18:50:23 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 58935 invoked by uid 99); 14 Jun 2012 18:50:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 18:50:23 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.96] (HELO qmta09.westchester.pa.mail.comcast.net) (76.96.62.96) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 18:50:17 +0000 Received: from omta13.westchester.pa.mail.comcast.net ([76.96.62.52]) by qmta09.westchester.pa.mail.comcast.net with comcast id NHrS1j00417dt5G59Jpw2N; Thu, 14 Jun 2012 18:49:56 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta13.westchester.pa.mail.comcast.net with comcast id NJps1j00f38FjT13ZJpvfG; Thu, 14 Jun 2012 18:49:56 +0000 Message-ID: <4FDA3251.2030409@christopherschultz.net> Date: Thu, 14 Jun 2012 14:49:53 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120601 Thunderbird/13.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: tomcat cluster for stateless web application References: <-7680996206123371198@unknownmsgid> In-Reply-To: <-7680996206123371198@unknownmsgid> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----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 > 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