How to set a persistent session set-up using apache-tomcat load balancing?
Hi,
Can anybody help me to set-up persistent session using apache-tomcat load balance. The worker files on the web server is shown below
worker.list=balancer
worker.worker1.domain=jvm1
worker.worker1.type=ajp13
worker.worker1.host=”ip of instance1”
worker.worker1.port=8080
worker.worker1.lbfactor=1
worker.worker2.domain=jvm2
worker.worker2.type=ajp13
worker.worker2.host=”ip of instance2”
worker.worker2.port=8080
worker.worker2.lbfactor=1
worker.balancer.type=ajp13
worker.balancer.balance_workers=worker1, worker2
worker.balancer.lbfactor=1
worker.balancer.sticky_session=1
and and i have editted the apache configuration file as below
JkShmFile “/etc/httpd/logs/mod_jk.shm”
JkWorkersFile “/etc/httpd/conf/jkworkers.properties”
JkLogFile “/etc/httpd/logs/mod_jk.log”
# Select the log format
JkLogStampFormat “[%a %b %d %H:%M:%S %Y] ”
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat “%w %V %T”
JkMount /jsp-examples workers
JkMount /jsp-examples/* workers
|
Recent comments
1 day 5 hours ago
1 day 8 hours ago
1 day 20 hours ago
1 day 22 hours ago
2 days 3 hours ago
2 days 9 hours ago
2 days 18 hours ago
2 days 20 hours ago
3 days 4 hours ago
3 days 6 hours ago