tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Izem" <farid.i...@gmail.com>
Subject Re: Apache / mod_jk / Multiples instances of Tomcat
Date Wed, 22 Feb 2006 08:28:59 GMT
Hi David,

Thanks for you help. This was exactly what i hace done.
But, the main problem was located on the tomcat servers.
As it was not me who install the tomcat servers, we find that
All the webapps were corrupt due to a file transfer.

Now, all work properly.

Many thanks,

Farid.

On 2/15/06, David Avenante <d.avenante@gmail.com> wrote:
>
> You can see this URL http://www.paulkimbrel.com/?p=3
>
> my configuration for me with one apache in front on two tomcat (for my
> tests)
> is :
>
> after install mod_jk of course ;)
>
> httpd.conf :
> # Load mod_jk module
> LoadModule    jk_module    modules/mod_jk.so
> JkWorkersFile /etc/apache2/workers.properties
> JkLogFile     /var/log/apache2/mod_jk.log
> JkLogLevel    ERROR
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkRequestLogFormat     "%w %V %T"
> JkMount /cluster-1.0-SNAPSHOT/app*  loadbalancer
>
> workers.properties :
>
> # workers.properties
>
> ps=/
>
> # List the workers name
> worker.list=loadbalancer
> # ----------------
> # First worker
> # ----------------
> worker.node01.port=8009
> worker.node01.host=agnes
> worker.node01.type=ajp13
> worker.node01.lbfactor=1
> worker.node01.domain=cluster1
> # ----------------
> # Second worker
> # ----------------
> worker.node02.port=9009
> worker.node02.host=ovea-inspiron
> worker.node02.type=ajp13
> worker.node02.lbfactor=1
> worker.node02.domain=cluster1
> # ----------------------
> # Load Balancer worker
> # ----------------------
> worker.loadbalancer.type=lb
> worker.loadbalancer.sticky_session=true
> worker.loadbalancer.balanced_workers=node01,node02
>
> as you can see in the list of worker only the loadbalancer worker is
> present.
> Be carreful in your server.xml to add jvmRoute with same name of worker.
>
> <Engine name="Catalina" defaultHost="localhost" jvmRoute="node01" ...
>
>
>
> On 2/15/06, Farid Izem <farid.izem@gmail.com> wrote:
> >
> > Hi all,
> >
> > I'm currently trying to build a Apache load balancings against multiples
> > instances of Tomcat.
> >
> > On my host, i have three instances of Tomcat (ie using CATALINA_BASE
> > variable), each listening on differents ports for AJP Connector.
> > On the same server, i have an Apache using Mod_jk.
> >
> > Is it possible to configure load balancing across the three instances of
> > Tomcat using mod_jk ?
> >
> > Morever, in the worker.properties, i don't known how to configure
> > worker.tomcat_home as it is different for each instance of Tomcat ?
> >
> > Any help would be appreciate, Any Internet Links ..
> >
> > Kind Regards,
> >
> > Farid
> >
> >
>
>

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