Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 97498 invoked from network); 2 Mar 2005 07:05:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Mar 2005 07:05:59 -0000 Received: (qmail 27021 invoked by uid 500); 2 Mar 2005 07:05:41 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 27007 invoked by uid 500); 2 Mar 2005 07:05:41 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 26983 invoked by uid 99); 2 Mar 2005 07:05:40 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from beanmlr01.capco.com (HELO beanmlr01.capco.com) (195.10.2.3) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 23:05:39 -0800 Received: from bean2k3s01.capco.com ([10.1.1.201]) by BEAN2KSMLR.capco.com with InterScan Messaging Security Suite; Wed, 02 Mar 2005 07:54:11 +0100 Received: from sgsi2k3s01.capco.com ([10.10.1.201]) by bean2k3s01.capco.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 2 Mar 2005 08:04:29 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: RE: session load-balancing and clustering of tomcat Date: Wed, 2 Mar 2005 15:04:27 +0800 Message-ID: <50547E7F6FF3BD4D89444E5EAC10973C6E2317@sgsi2k3s01.capco.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: session load-balancing and clustering of tomcat Thread-Index: AcUe7xQrsgvpy2LCQYi/QcEg8OLc8AABuJmA From: "Sng Wee Jim" To: "Tomcat Users List" X-OriginalArrivalTime: 02 Mar 2005 07:04:29.0952 (UTC) FILETIME=[1431C000:01C51EF6] X-imss-version: 2.022 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, Sorry for the noise. I have found the solution at=0D http://marc.theaimsgroup.com/?l=3Dtomcat-user&m=3D104808785801048&w= =3D2 - Jim -----Original Message----- From: Sng Wee Jim=0D Sent: Wednesday, March 02, 2005 2:14 PM To: 'Mladen Turk'; Tomcat Users List Subject: RE: session load-balancing and clustering of tomcat Hi, I am actually trying to get sticky session load-balancing with IIS & tomcat (not apache webserver, client's requirement). My worker.properties: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D worker.list=3Dtomcat1,tomcat2 worker.tomcat1.type=3Dajp13 worker.tomcat1.host=3Dlocalhost worker.tomcat1.port=3D8009 worker.tomcat1.lbfactor=3D1 worker.tomcat1.socket_timeout=3D5 worker.tomcat1.recycle_timeout=3D10 worker.tomcat2.type=3Dajp13 worker.tomcat2.host=3Dlocalhost worker.tomcat2.port=3D8209 worker.tomcat2.lbfactor=3D1 worker.tomcat2.socket_timeout=3D5 worker.tomcat2.recycle_timeout=3D10 worker.loadbalancer.type=3Dlb worker.loadbalancer.balanced_workers=3Dtomcat1 My uriworkermap.properties: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D default.worker=3Dtomcat1 /webapp/*.jsp=3D$(default.worker) /webapp/*.do=3D$(default.worker) "tomcat1" seems to be hardcoded to be the default worker. So how should I configure, so that tomcat2 will be used for the load-balancing redirection too? Also tomcat1 is specified as a load-balancer worker, does that mean that if tomcat1 goes down, then load-balancing will cease too? - Jim -----Original Message----- From: Mladen Turk [mailto:mladen.turk@jboss.com]=0D Sent: Wednesday, March 02, 2005 12:55 AM To: Tomcat Users List Subject: Re: session load-balancing and clustering of tomcat Lionel Farbos wrote: > 1) In server.xml : >=0D > - uncomment the AJP 1.3 Connector (on port 8009), > - set the jvmRoute in each Engine > example : > Session route *must* consists only of alphanumeric characters. See the: http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html Later mod_jk releases will have that as prerequisite so that we don't need to url encode session routes. > 2) then add the module mod_jk in apache > with jk workers defined like this : >=0D > worker.list=3Dt1_ajp13,t2_ajp13,loadbalancer > This is not quite correct, although it will work. You should set worker.list only for workers that have JkMount directive registered. Also workers that are member of load balancer *should* not be listed within worker.list Regards, Mladen. ************************************************************************ The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email=0D immediately. You should not copy, use or disseminate the=0D information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ ************************************************************************ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org