tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sng Wee Jim" <Wee.Jim....@capco.com>
Subject RE: session load-balancing and clustering of tomcat
Date Wed, 02 Mar 2005 07:04:27 GMT


Hi,

Sorry for the noise. I have found the solution at
       http://marc.theaimsgroup.com/?l=tomcat-user&m=104808785801048&w=2


- Jim

-----Original Message-----
From: Sng Wee Jim
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:
======================
worker.list=tomcat1,tomcat2

worker.tomcat1.type=ajp13
worker.tomcat1.host=localhost
worker.tomcat1.port=8009
worker.tomcat1.lbfactor=1
worker.tomcat1.socket_timeout=5
worker.tomcat1.recycle_timeout=10

worker.tomcat2.type=ajp13
worker.tomcat2.host=localhost
worker.tomcat2.port=8209
worker.tomcat2.lbfactor=1
worker.tomcat2.socket_timeout=5
worker.tomcat2.recycle_timeout=10

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1


My uriworkermap.properties:
===========================
default.worker=tomcat1

/webapp/*.jsp=$(default.worker)
/webapp/*.do=$(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]
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 :
>
> - uncomment the AJP 1.3 Connector (on port 8009),
> - set the jvmRoute in each Engine
> example : <Engine name="Standalone" defaultHost="host1" debug="0"
jvmRoute="t1_ajp13">
>

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 :
>
> worker.list=t1_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
immediately. You should not copy, use or disseminate the
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


Mime
View raw message