Forum Discussion
Angel_Martinez_
Nimbostratus
Nov 18, 2010LB::server pool
Hi
I've this iRule running in two different boxes:
rule iRule_Sorry_Redirect {
when LB_FAILED {
if { [active_members [LB::server pool]] < 1 } {
HTTP::fallb...
Angel_Martinez_
Nimbostratus
Nov 26, 2010Hi !
It seems to be working right:
:Active] ~ b rule iRule_Sorry_Redirect list
rule iRule_Sorry_Redirect {
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when LB_FAILED {
if { [active_members $default_pool] < 1 } {
HTTP::fallback "http://sorry-[HTTP::header host]"
}
}
}
Active] ~ b rule iRule_Sorry_Redirect
RULE iRule_Sorry_Redirect
+-> CLIENT_ACCEPTED 7667 total 0 fail 0 abort
+-> LB_FAILED 5 total 0 fail 0 abort
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