tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Koecke ...@schlund.de>
Subject Re: tomcat 4.0.3 + mod_jk
Date Thu, 21 Mar 2002 13:09:08 GMT
yes, I know. But when I come in without a session the function 
get_most_suitable_worker in jk_lb_worker.c will find a worker by using 
the lb-factor and do weighted round robin. And at this position I would 
like to switch off the load-balancing and select the worker which is 
connected to tomcat on the same node. Because we have a loadbalancer in 
front of our cluster but it can't handle the sessions. So we need the 
routing of mod_jk for sticky sessions, but the loadbalancing would 
indefer with our loadbalancer.

With mod_jserv we did it with a little trick. The routing config and the 
nodeset for loadbalancing were separated. For routing we told mod_jserv 
all the nodes in the cluster, but for loadbalancing we build a nodeset 
with only the local node in it. A little perl script build the conffiles 
suitable for the nodes.

But mod_jserv can only work with ajp12 and we would like to use the 
advanced features of ajp13.

For mod_jk of tomcat 3.2.x I build an additional worker which did only 
the routing. And I added a new config command for declaring the local 
connected worker. But it is a little bit laborious to add this every 
time when the connectors change.

Id would be nice if this feature was contained in mod_jk. I could do it 
and send the additional worker to the list/project.

Thanks

Bernd

GOMEZ Henri wrote:
> in mod_jk, when a session is created the following requests
> will allways go to the same tomcat.
> 
> IBM call it Session Affinity ;)
> 
> 
>>Hi,
>>
>>is it possible to use only the session routing of mod_jk without load
>>balancing?
>>
>>Because we have a standalone loadbalancer in front of our cluster. In 
>>the past we used mod_jserv with ApacheJServ. But now we want to switch 
>>to tomcat. On every node should run an apache and tomcat, connected to 
>>each other with mod_jk. We need the routing between the nodes for 
>>established sessions, but a request without a session should be routed 
>>by mod_jk to the tomcat on the same node.
>>
>>I hope I could reach someone of the mod_jk developers. Sending this
>>question to the user list wasn't successful.
>>
>>Thanks
>>
>>Bernd
[...]


-- 
Dipl.-Inform. Bernd Koecke
UNIX-Entwicklung
Schlund+Partner AG
Fon: +49-721-91374-0
E-Mail: bk@schlund.de


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message