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

Reply via email to