Forum Discussion
SAZ_144363
Nimbostratus
May 10, 2016Disable VIP when pool members are down
Hi
Is is possible with iRules to send reset flag to client when health monitor fails on all pool members. We don't want f5 to accept any traffic.
Thanks
Yann_Desmarest
Cirrus
May 10, 2016Please find below an example for HTTP (HTTP_REQUEST) and another generic (LB_FAILED) :
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
set method [HTTP::method]
if { [active_members $default_pool] < 1 } {
HTTP::respond 200 content [ifile get "/Common/maintenance.html"] noserver "Content-Type" "text/html" "Cache-Control" "no-cache, must-revalidate"
reject
}
}
when LB_FAILED {
reject
}
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