Forum Discussion
Jon_46029
May 16, 2012Nimbostratus
Redirecting a client when "connection refused" by pool
When all of the pool members are down for a Virtual Server (VS), we're seeing a connection refused error at the browser.
I'd like to catch that in the F5 LTM with an iRule and direct the browser to a different site hosting a maintenance status message.
Without an existing HTTP session, though, there's no 404 data and HTTP::* events don't appear to be setup. (HTTP::redirect won't work on SERVER_CLOSED which appears to be the only event I can find that traps the condition).
Suggestions?
Jon
- natheCirrocumulusJon
- John_Alam_45640Historic F5 Account
- smp_86112CirrostratusWhen all of the pool members are down for a Virtual Server (VS)
when LB_FAILED { HTTP::redirect "/maintenance.html" }
- Jon_46029NimbostratusThe LB_FAILED event seems to be the best option, though I do not have a complete test environment... I don't think the HTTP::redirect flies cause there's no HTTP connection (yet) to redirect.
when LB_FAILED { 07 pool my_Pool 08 LB::reselect 09 log "Selected server [LB::server] did not respond. Re-selecting node from myPool" 10}
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