tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Ranka" <anil.tom...@gmail.com>
Subject Re: Help with Tomcat Clustering and load balancing
Date Thu, 28 Sep 2006 19:55:51 GMT
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 <CBerthold@terrafirma-productions.com> 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 <CBerthold@terrafirma-productions.com> 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:
> >
> > <VirtualHost *:80>
> >   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/
> >
> >   <Proxy 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
> >   </Proxy>
> >
> > </VirtualHost>
> >
> > 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message