Forum Discussion
Joe_Curl_105786
Nimbostratus
Feb 07, 2014HTTP Redirect When Pool is down
I would like to craft an iRule that detects the pool assigned to the VIP has all members down. When it is down then do an http redirect to our site down web server. I have rules in place where I ca...
IheartF5_45022
Nacreous
Feb 10, 2014The advantages of using LB_FAILED are that;
- it catches when the pool is down (no active members) and also when the pool has not been marked down, but the pool member chosen is unresponsive, so it's actually more powerful than just checking [active_members [LB::server pool]]
- it's slightly more efficient as it saves potentially unnecessary checking in HTTP_REQUEST and you wouldn't need to worry about event disabling in HTTP_REQUEST (assuming you do not implement LB_FAILED in your other iRules) - this may not be a concern but worth noting
There may be other situation-specific reasons for wanting to execute the check in HTTP_REQUEST but if not LB_FAILED works well too as a generic rule for catching errors.
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