Forum Discussion
Matt_Breedlove_
Nimbostratus
Apr 25, 2009Help with avoiding Reselect bug in LB_Failed
Hi All,
Running BIG-IP 9.3.1 Build 37.1
Was planning on using LB:Reselect in LB_Failed then I saw the known issue on the reference page about causing a system crash...yikes. H...
Matt_Breedlove_
Nimbostratus
Apr 30, 2009Thanks for explaining that. Here is the modified rule
Can you valdiate the use of the lb_retrys (not really retry but reselect) in this below iRule?
when CLIENT_ACCEPTED {
set lb_retrys 0
set maint 0
set clip [IP::client_addr]
if { [LB::status pool pool_80 member $clip 80] eq “up” } {
pool pool_80 member $clip 80
} elseif { [active_members pool_80] >= 4 } {
LB::mode rr
LB::reselect pool pool_80
} else {
set maint 1
}
}
when HTTP_REQUEST {
if { $maint = 1 } {
HTTP::redirect http://maintenance_window_page
}
}
when LB_SELECTED {
if { lb_retries >= 1 } {
LB::mode rr
LB::reselect pool pool_80
}
}
when LB_FAILED {
if { $lb_retrys < [active_members pool_80] } {
persist none
LB::mode rr
LB::reselect pool pool_80
} else {
HTTP::redirect http://maintenance_window_page
}
incr lb_retrys
}
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