You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/01/29 23:49:27 UTC
DO NOT REPLY [Bug 26540] New: -
Load balanced sessions not sticking to a server when a tomcatId contains a period
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26540>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26540
Load balanced sessions not sticking to a server when a tomcatId contains a period
Summary: Load balanced sessions not sticking to a server when a
tomcatId contains a period
Product: Tomcat 4
Version: Unknown
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Normal
Priority: Other
Component: Connector:Coyote JK 2
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: jmorace@jons.net
I was having a problems with my sessions not sticking to the correct web
server in a load balanced cluster. If I set tomcatId/jvmRoute to a
value that does not contain a period, the problem goes away. I'm using
Apache 2.0.47 with JK 2.0.2.
---- Example error configuration ----
# This configuration appears to fail because the jvmRoute becomes
# server.mydomain.com:8009 (contains . characters).
[shm:]
file=${serverRoot}/logs/jk2.shm
size=1048576
[lb:load_balancer]
[channel.socket:server.mydomain.com:8009]
port=8009
host=server.mydomain.com
group=load_balancer
lb_factor=1
[channel.socket:server.mydomain.com:8019]
port=8019
host=server.mydomain.com
group=load_balancer
lb_factor=1
[uri:/test/*]
group=lb:load_balancer
---- Example working configuration (using localhost) ----
# This configuration works because it constructs a jvmRoute that
# looks like localhost:8009 (no periods).
[shm:]
file=${serverRoot}/logs/jk2.shm
size=1048576
[lb:load_balancer]
[channel.socket:localhost:8009]
port=8009
host=localhost
group=load_balancer
lb_factor=1
[channel.socket:localhost:8019]
port=8019
host=localhost
group=load_balancer
lb_factor=1
[uri:/test/*]
group=lb:load_balancer
---- Example working configuration (using tomcatId) ----
# This configuration works because the tomcatId sets the jvmRoute
# to server1 (no periods).
[shm:]
file=${serverRoot}/logs/jk2.shm
size=1048576
[lb:load_balancer]
[channel.socket:server.mydomain.com:8009]
port=8009
host=server.mydomain.com
group=load_balancer
lb_factor=1
tomcatId=server1
[channel.socket:server.mydomain.com:8019]
port=8019
host=server.mydomain.com
group=load_balancer
lb_factor=1
tomcatId=server2
[uri:/test/*]
group=lb:load_balancer
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org