HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   How to set a persistent session set-up using apache-tomcat load balancing? (http://www.howtoforge.com/forums/showthread.php?t=47416)

Sree007 19th July 2010 10:21

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


All times are GMT +2. The time now is 21:38.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.