Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 22799 invoked from network); 28 Sep 2006 23:01:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2006 23:01:39 -0000 Received: (qmail 5467 invoked by uid 500); 28 Sep 2006 23:01:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 5423 invoked by uid 500); 28 Sep 2006 23:01:17 -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 5287 invoked by uid 99); 28 Sep 2006 23:01:17 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2006 16:01:17 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=anil.tomcat@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [64.233.182.188] ([64.233.182.188:42188] helo=nf-out-0910.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 90/C4-00212-8145C154 for ; Thu, 28 Sep 2006 16:00:57 -0700 Received: by nf-out-0910.google.com with SMTP id x4so913593nfb for ; Thu, 28 Sep 2006 16:00:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ZYnx1jbQRqw+MAIBjgbFn7SMwgdEGQ4Q4d4NmsUReGqC4OINAzJulTvCputFT6D7MIGM+n9CM7fje6vTLZW61yAiYk8yriQr5krpReMR1eKsNEvaQTGPdsbbE2eIbURo5oxzJ4N6iqwbcgu2x1JzQpEJRdUR6wfosUIYzpuP2sE= Received: by 10.82.120.15 with SMTP id s15mr47196buc; Thu, 28 Sep 2006 16:00:09 -0700 (PDT) Received: by 10.82.109.16 with HTTP; Thu, 28 Sep 2006 16:00:09 -0700 (PDT) Message-ID: Date: Thu, 28 Sep 2006 16:00:09 -0700 From: "Anil Ranka" To: "Tomcat Users List" Subject: Re: Help with Tomcat Clustering and load balancing In-Reply-To: <422C6CF8A75CF044A2F34E5E264F20E43DD1@tf-pc.terrafirma-productions.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6356_24888448.1159484409957" References: <422C6CF8A75CF044A2F34E5E264F20E43DD1@tf-pc.terrafirma-productions.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_6356_24888448.1159484409957 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Chris, How you download Apache 2.2.4. I can see only 2.2.3 released. Thanks Anil On 9/28/06, Chris Berthold wrote: > > I replied to your direct message but important for the list. The hot > standby feature was added in 2.2.4 development, my bad, its already in > the docs too. I've never used it so I'm not quite sure how you would do > the hot stand by on 2.2.3 or older with the mod_proxy load balancer. > You can use mod_jk which does provide those features. > > I stopped using mod_jk because it doesn't work properly with my > firewall that segregates my segments. One dropped connection a boom > mod_jk gets confused. > > -----Original Message----- > From: Anil Ranka [mailto:anil.tomcat@gmail.com] > Sent: Thursday, September 28, 2006 3:56 PM > To: Tomcat Users List > Subject: Re: Help with Tomcat Clustering and load balancing > > Chris, > I am using Apache 2.2.3 on Windows XP. > > D:\sam\apache\Apache2.2\bin>httpd.exe -v > Server version: Apache/2.2.3 > Server built: Jul 27 2006 16:49:49 > > > Thanks > Anil S. Ranka > > > On 9/28/06, Chris Berthold wrote: > > > > What version of apache are you using? > > > > -----Original Message----- > > From: Anil Ranka [mailto:anil.tomcat@gmail.com] > > Sent: Thursday, September 28, 2006 3:37 PM > > To: Tomcat Users List > > Subject: Re: Help with Tomcat Clustering and load balancing > > > > Hi, > > I have tried your suggestion, When I run my apache on windows env, I > > am > > getting following error > > > > BalancerMember Unknow status parameter option > > > > for line : BalancerMember ajp://1.2.3.5:8009 status=+H > > > > Any clue. > > > > Thanks > > Anil S. Ranka > > > > On 9/28/06, Chris Berthold > wrote: > > > > > > You'll probably want to use mod_proxy_ajp I've had pretty good > success > > > with it. I'm not sure why you would be using an active-hot > > standby-hot > > > standby instead of active-active-hot standby but who am I to judge > =o) > > > > > > Get a configuration working with it first on one server then work > > > towards the hot stand bys > > > > > > Your apache load balancing config will look like this if you want to > > use > > > mod_proxy_ajp: > > > > > > > > > ServerName www.mydomain.com > > > DocumentRoot /www/www.mydomain.com/html > > > > > > ReWriteEngine on > > > > > > # will preserve the host name in the request so you can use > virtual > > > # domains on the apache side > > > ProxyPreserveHost On > > > # prevents reverse proxying > > > ProxyRequests Off > > > ProxyVia Off > > > > > > # proxy rewrite rule > > > ProxyPass / balancer://hotcluster/ > > > > > > > > > > > > BalancerMember ajp://1.2.3.4:8009 loadfactor=1 > > > # The below servers are the hot standbys > > > BalancerMember ajp://1.2.3.5:8009 status=+H > > > BalancerMember ajp://1.2.3.6:8009 status=+H > > > ProxySet lbmethod=bytraffic > > > > > > > > > > > > > > > You can also use straight up mod_proxy by changing the ajp:// > > references > > > to http:// and change the ports 8009 to 8080. I believe if you do so > > it > > > will not scale as well because the AJP interface transfers data from > > > Tomcat to Apache HTTP via a binary format versus the straight up > text > > > interface. > > > > > > Hope this helps, > > > Chris Berthold > > > > > > -----Original Message----- > > > From: Anil Ranka [mailto:anil.tomcat@gmail.com] > > > Sent: Thursday, September 28, 2006 9:50 AM > > > To: users@tomcat.apache.org > > > Subject: Help with Tomcat Clustering and load balancing > > > > > > Hi All, > > > > > > I am new with Tomcat Clustering feature. I have configured my > three > > > tomcats nodes in cluster mode and they are talking to each other no > > > issues. > > > Out these three nodes N1, N2 and N3 only one node will be ACTIVE > node > > > and > > > rest two will be PASSIVE. ACTIVE means my app will be loaded on only > > one > > > node. When this ACTIVE node goes down, using clustering mechanism I > am > > > able > > > to load my APP on next node from list. This scenario works very > well. > > > !!!! > > > NO ISSUES!!! > > > > > > Now to out side world I have to give URL so that they can submit > jobs > > to > > > this clustered nodes. Here I get lost. I am assuming I need load > > > balancer/proxy will which will route my request to ACTIVE node. > > > > > > My question is : How to configure load balancer/proxy server to rote > > my > > > request to any specific ACTIVE node. > > > > > > I tries tomcat web apps load balance, it does url redirect and I > loose > > > my > > > request data. > > > > > > Any help/pointer will be highly appreciated. > > > > > > Thanks > > > Anil S. Ranka > > > > > > > --------------------------------------------------------------------- > > > 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 > > > > > > > > > > --------------------------------------------------------------------- > > 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 > > > > > > --------------------------------------------------------------------- > 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 > > ------=_Part_6356_24888448.1159484409957--