I would like to be able to check that status of a tomcat instance when Apache is being called.
The ultimate goal is to have a non sticky environment, except for authentication. I have achieved the first portion of this task by using a path name and using SetEnvIfNoCase to check for the path name and set JK_WORKER_NAME to the appropriate tomcat instance. Now I have to deal with the server failure issue happening in the middle of the sticky authentication.
The conditions of failure are as follows:
1) Call Cas from Instance one and have path name set
2) Instance one fails while login process is being done
3) Cas returns to Apache which tries to direct to instance one which is down
4) Tomcat gives Service Not Available
What I would like to happen is at step 3 I want apache to check on the status or ping the tomcat instance to see if the server is still alive and if not change the JK_WORKER_NAME back to the load balanced worker.
Any help would be greatly appreciated.