I am using apache http and the mod_jk for load balancing. While using sticky sessions if one of the tomcat instances dies the request is successfully redirected to the other node. If for some reason the applications dies but the tomcat is alive then the requests keep going to node which has the dead application. Any ideas how to resolve this?
Below you can fine me worker.properties file.
worker.list=myworker
worker.myworker1.port=8009
worker.myworker1.host=host1
worker.myworker1.type=ajp13
worker.myworker1.lbfactor=1
worker.myworker2.port=8009
worker.myworker2.host=host2
worker.myworker2.type=ajp13
worker.myworker2.lbfactor=1
worker.myworker.type=lb
worker.myworker.balance_workers=myworker1,myworker2
worker.myworker.sticky_session=True
Thanks!