|
Hi
I'm using
Apache2.0.43 and Tomcat4.1.18. I have configured it with multiple tomcat
instances with a load balancer. But I am unable to maintain sticky session . The
application that I am using has to maintain sessions. But this not happening
.When I login the request is JSP so it does to the first Tomcat after login when
I click on any link it goes to the second Tomcat and I get a session timeout.
I want to know if
any one has configured this version of tomcat for maintaining sticky session . I
am also sending the workers.properties
#
workers.properties
# # In Unix, we use
forward slashes:
ps=/ # list the workers
by name
#worker.list=tomcat1,tomcat2,loadbalancer
worker.list=loadbalancer #worker.list=loadbalancer # ------------------------ # First tomcat server # ------------------------ worker.tomcat1.port=11009 worker.tomcat1.host=192.168.146.205 worker.tomcat1.type=ajp13 # Specify the size
of the open connection cache.
#worker.tomcat1.cachesize #
# Specifies the load balance factor when used with # a load balancing worker. # Note: # ----> lbfactor must be > 0 # ----> Low lbfactor means less work done by the worker. worker.tomcat1.lbfactor=100 #worker.tomcat1.local_worker=1 # ------------------------ # Second tomcat server # ------------------------ worker.tomcat2.port=12009 worker.tomcat2.host=192.168.146.205 worker.tomcat2.type=ajp13 # Specify the size of the open connection
cache.
#worker.tomcat2.cachesize #
# Specifies the load balance factor when used with # a load balancing worker. # Note: # ----> lbfactor must be > 0 # ----> Low lbfactor means less work done by the worker. worker.tomcat2.lbfactor=100 #worker.tomcat2.local_worker=1 # ------------------------
# Load Balancer worker # ------------------------ #
# The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # ----> If a worker dies, the load balancer will check its state # once in a while. Until then all work is redirected to peer # worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2 worker.loadbalancer.sticky_session=1 in Tomcat#worker.loadbalancer.local_worker_only=2 |
**************************Disclaimer************************************************** Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited.
****************************************************************************************
