Forum Discussion
Priya_73968
Nimbostratus
Feb 05, 2009Detect the health of webserver and route traffic accordingly
Hi
I am a system admin working on websphere and have no clue on the capabilities of F5.
Can anyone tell me if F5 can check the status of a webserver(down/up) and if the webserver is do...
L4L7_53191
Nimbostratus
Feb 06, 2009Priya: Here's a setup that we used with some WebSphere (and other J2EE) apps that worked quite well. In our case we had several resources that we cared about: an instance of MQ that the app connected to and a couple of remote databases. If any of these were down or if our container wasn't able to connect for some reason, we'd want to take the server out of the pool.
Our approach was to write a basic servlet that would check database connectivity, fetch a simple message from the queue, etc. Then it would report back: UP or DOWN.
On the BigIP we simply created a monitor that pointed to our servlet (be sure and pass the HOST header to WebSphere, and I always add a Connection: close header as well), and added a "fallback host" to our http profile that we applied to the virtual server.
The fallback host setting basically means this: when all nodes are down, redirect to some other site. In the field, place the location you want them to get the 302 for.
Hope this helps, and good luck!
-Matt
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
