Hi there,
if you are working with mod_jk the default loadbalancer (type lb) has sticky session enabled by default providing you have setup your jmRoute properly in each catalina engine (server.xml on each server) [or at least that how I understand it]
(extract from the workers.properties)
#------ DEFAULT LOAD BALANCER WORKER DEFINITION ----------------------
#---------------------------------------------------------------------
#
#
# The loadbalancer (type lb) workers perform wighted 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
# workers.
#worker.loadbalancer.type=lb
#worker.loadbalancer.balanced_workers=yourworker
If you do not apply the sticky session then you have to make sure that the sessions info are shared between your Tomcat instances otherwise you will lose the sessions details at each switch.
Hope this helps
Fanch
|