Forum Discussion
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