I'm having difficulty with failover testing. When a tomcat server goes away due to networking issues, the site become effectively unusable. Here's the architecture:
=> apache1 tomcat1 LB FW => apache2 tomcat2 If I stop the tomcat server tomcat2, there's no problem. It properly closes the sockets and mod_jk/apache/linux knows the server went away. But if I shutdown the network on tomcat2 (or yank the cable), mod_jk continues to send packets to it. My socket table is filled with connections to tomcat2:8009 in SYN_SENT. Apache continues to send every other request to tomcat2. Since I use session stickiness, this only effects half the users but still. Here's my workers.properties file: ps=/ # Define list of workers that will be used # for mapping requests # When load-balancing is used, real workers should not be listed here. worker.list=balancer,status # Definte default worker settings worker.default.port=8009 worker.default.type=ajp13 worker.default.lbfactor=1 worker.default.socket_timeout=120 worker.default.reply_timeout=5000 worker.default.socket_keepalive=True worker.default.ping_mode=P worker.default.ping_timeout=5000 worker.default.connect_timeout=5000 worker.default.prepost_timeout=5000 worker.default.connection_pool_timeout=180 #------WORKER1------- worker.worker1.reference=worker.default worker.worker1.host=10.248.11.15 #------WORKER2------- worker.worker2.reference=worker.default worker.worker2.host=10.248.11.16 #------BALANCER------ worker.balancer.type=lb worker.balancer.balance_workers=worker1,worker2 worker.balancer.sticky_session=true worker.balancer.method=R worker.balancer.lock=P worker.balancer.sticky_session=1 # Status worker for managing load balancer worker.status.type=status And here's my apache configuration: <IfModule mod_jk.c> JkWorkersFile /etc/httpd/conf/workers.properties JkShmFile /var/log/httpd/mod_jk.shm JkLogFile /var/log/httpd/mod_jk.log JkOptions +DisableReuse JkMount /rp/* balancer JkMount /rp balancer </IfModule> Any thoughts? TIA, Jeff --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org