tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: jk load balancing based upon ip address rather than session id
Date Fri, 13 Jun 2008 14:22:17 GMT
Ben Stringer wrote:
> On Fri, 2008-06-13 at 10:54 +0200, Rainer Jung wrote:
> 
>> Environment variable in httpd can be set by mod_setenvif and 
>> mod_rewrite, which are both able to check various request properties. 
>> For instance mod_rewrite can check the Cookie header, so you could 
>> extract the name of the chosen backend via a regexp from the value of 
>> your own SSO cookie. But it's not yet implemented. Check 
>> mod_proxy_balancer. In general it has less features than mod_jk, but in 
>> your case it seems there is an advantage in mod_proxy_balancer.
> 
> Or just use mod_rewrite to check the request properties, and based on
> these, rewrite the URL in such a way that it maps to a different JkMount
> attribute, sending the request to a specific worker.

You are right: if he sets e.g. an SSO cookie with the name of the 
correct node in it and uses mod_rewrite to detect, which is the right 
node (named "NODEX"), he can redirect to

ORIGINALURL;jsessionid=.NODEX

The LB will then send the new request to NODEX, which generates a new 
session with a correct session id and jvmRoute suffix.

> Cheers, Ben

Rainer

---------------------------------------------------------------------
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
View raw message