Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 60147 invoked from network); 4 Jul 2008 22:10:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2008 22:10:56 -0000 Received: (qmail 25519 invoked by uid 500); 4 Jul 2008 22:10:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 25490 invoked by uid 500); 4 Jul 2008 22:10:42 -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 25479 invoked by uid 99); 4 Jul 2008 22:10:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 15:10:42 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.227.30.149] (HELO mailserver.kippdata.de) (195.227.30.149) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 22:09:50 +0000 Received: from [192.168.2.106] ([192.168.2.106]) by mailserver.kippdata.de (8.13.5/8.13.5) with ESMTP id m64MA79Y004805 for ; Sat, 5 Jul 2008 00:10:08 +0200 (CEST) Message-ID: <486E9FA2.40608@kippdata.de> Date: Sat, 05 Jul 2008 00:09:38 +0200 From: Rainer Jung User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: mod_ajp and Load-Balancing Issue References: <12962946AC63734F87085BCC8CDA7518010D7684@TJ1EXA02.mtsallstream.com> <486E6DF9.7030702@kippdata.de> <12962946AC63734F87085BCC8CDA7518010D7687@TJ1EXA02.mtsallstream.com> In-Reply-To: <12962946AC63734F87085BCC8CDA7518010D7687@TJ1EXA02.mtsallstream.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Plana, Richard schrieb: > > >> -----Original Message----- >> From: Rainer Jung [mailto:rainer.jung@kippdata.de] >> Sent: Friday, July 04, 2008 12:38 PM >> To: Tomcat Users List >> Subject: Re: mod_ajp and Load-Balancing Issue >> >> Plana, Richard schrieb: >>> Hi, >>> >>> Thanks. Yes, if I can't share the session information between the >>> various instances of Tomcat, I'd rather make a session sticky to a >>> node in the load-balance pool. >>> >>> So I tried giving a jvmRoute to each Tomcat instance. I'm a little >>> confused with the mod_proxy_balancer configuration, though. >> What I've >>> done so far is the following: >>> >>> >>> BalancerMember ajp://appserver1:8009/myapp max=10 smax=6 >>> ttl=30 ping=120 route=jvm1 >>> BalancerMember ajp://appserver2:8009/myapp max=10 smax=6 >>> ttl=30 ping=120 route=jvm2 ProxyPass /myapp >>> balancer://mycluster/ ProxyTimeout 60 >>> >>> From the browser client side, I can see the ".jvm[12]" >> being appended >>> to the JSESSIONID cookie, but it would still switch from >> one Tomcat to >>> the other, albeit less frequently. >>> >>> What am I doing wrong? >> So far, so good. You also need to tell mod_proxy_balancer, >> what the name of the URL parameter resp. Cookie is, which >> carries the routing information. I forgot about that (in >> mod_jk it is automatically the right for Java App Servers, >> mod_proxy is more flexible and you need to set it). >> >> So add "stickysession=JSESSIONID|jsessionid" at the end of >> the ProxyPass line. See also the mod_proxy docs page, look >> out for stcikysession. > > Tried that after you mentioned it, but no, httpd still shifts my access > from one node to the other (and I lose my session info). I even tried > the plain example on the docs page (no jvmRoute info). Still no go. > > Suggestions? Ideas? Is that related to the error message you posted in the parallel discussion thread, i.e. are the two things happening at the same time? If so I would say a worker went into error state because of this (and it keeps that state for some time) and all requests have been rerouted to the other worker. Regards, Rainer --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org