Forum Discussion
Christian_Laute
Nimbostratus
Jul 01, 2016iRule checking Pool is down
Gents,
maybe you can help me out. I need an irule to check the availability of a pool. Usually I used the command
[...]
if { [active_members [LB::server pool]] == 0 }
[...]
but the disadvan...
cjunior
Nacreous
Jul 05, 2016Now I understand what you were looking for, so why don't you simple do this way:
when HTTP_REQUEST {
if { [catch { eval [LB::select] }] } {
HTTP::respond 200 content {
************************************************************************************************
E-R-R-O-R: Sorry - no Node with status ACTIVE or DISABLED found!!!
************************************************************************************************
} Connection close
}
}
Thus, when no members active in pool, the new connections will get sorry page immediately, and for the member disabled the current connections keep working till it end.
Respectfully.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
