tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ian" <...@scn.ph>
Subject session affinity with loadbalancing (apache2, mod_jk, tomcat5 on linux 9, jdk1.4.2)
Date Thu, 15 Apr 2004 07:33:47 GMT
I've read in the Workers How To of apache that the property
sticky_session for lb worker properties enables / disables session
affinity for the load balancer. When I tried it on my system the session
doesn't seem to be retained often resulting to a session timed out or a
not logged in error. Below is my worker.properties configuration.

# ------------------------
# worker.properties
# ------------------------

# In Unix, we use forward slashes:
ps=/

# list the workers by name
worker.list=tomcat1, tomcat2, loadbalancer

# ------------------------
# tomcat1 worker
# ------------------------

worker.tomcat1.host=192.168.0.61
worker.tomcat1.port=8009
worker.tomcat1.lbfactor=100
worker.tomcat1.type=ajp13
worker.tomcat1.cachesize=10
worker.tomcat1.cache_timeout=600
worker.tomcat1.socket_keepalive=1
worker.tomcat1.socket_timeout=300

# ------------------------
# tomcat2 worker
# ------------------------

worker.tomcat2.host=192.168.0.65
worker.tomcat2.port=8009
worker.tomcat2.lbfactor=100
worker.tomcat2.type=ajp13
worker.tomcat2.cache_timeout=600
worker.tomcat2.socket_keepalive=1
worker.tomcat2.socket_timeout=300

# ------------------------
# end of file
# ------------------------


Can anyone give me an idea where I may have an error?
Thanks.

- ian

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