Load Balancing Configuration error in tomcat
Hi
im very new to tomcat ,i tried out to configure Load balancing in tomcat .configured tomcat1 and tomcat2 .tomcat 1 made to run on port 80 and tomcat 2 made it to run on pot 90.I had deployed the same patch on both the tomcat instant.But whenver tomcat1 get fails tomcat2 never servers tomcat1.server and site get down.Im very new to tomcat application can anyone help me how can i configured load balancing in tomcat server
Httpd.conf
#apache tomcat connector propertise file location
JkWorkersFile "/etc/httpd/conf/workers.properties"
JkLogFile "logs/mod_jk.log"
JkLogLevel debug,error,info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
workers.properties
ps=/
worker.list=worker1,worker2
worker.list=balancer
worker.worker1.port=8081
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
worker.worker2.port=9092
worker.worker2.host=localhost
worker.worker2.type=ajp13
worker.worker2.lbfactor=2
worker.balancer.type=1b
worker.balancer.balance_workers=worker1,worker2
worker.balance.method=B
worker.balancer.sticky_session=True
worker.balancer.type=1b
worker,balancer.balance_workers=worker1,worker2
worker.balancer.method=B
worker.balancer.sticky_session =True
when i try to start the apache service it not starting up.when i uncomment the below line
worker.balancer.type=1b
worker,balancer.balance_workers=worker1,worker2
worker.balancer.method=B
worker.balancer.sticky_session =True
apache getting started up .Can anyone help me wat could b problem in my conf
Last edited by sanjay87; 03-26-2012 at 09:22 AM.
|