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 bro...
John_Alam_45640
May 18, 2012Historic F5 Account
Here is Nathan's iRule with small modification: (works well for http and https)
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 } {
HTTP::redirect "http://www.test.com"
}
}
Priority grouping is a good idea too.
To answer Jon's question, as to: which event catches the condition of "NO members available", that would be the LB_FAILED event.
Check out this link:
https://devcentral.f5.com/weblogs/jason/archive/2009/09/08/irules-insight-http-event-order.aspx
John
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