Forum Discussion
KJ_50941
Nimbostratus
Sep 22, 2015irule for 503 error if all pool memebers are down
I have a requirement to display page from F5 with 503 error once all pool members are down. I got below iRule from Dev central but I getting syntax error , what I am doing wrong.?
if { [active_m...
nathe
Cirrocumulus
Sep 22, 2015KJ
You've got some basic syntax errors and you're missing the Event HTTP_REQUEST. Now as for your use of TCP close and Event Disable i'm not 100% on whether they can work together. Need to test that. Anyway something like this?
when HTTP_REQUEST
if { [active_members My_DEV_443_Pool] < 1 } {
HTTP::respond 503 content "Page is currently unavailable.The system is unable to fulfill your request. This is not a problem with your computer or network connection.:\"
event disable
TCP::close
}
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