I have a pool of 2 nodes, with “uie” persistancy profile,
and running without health-monitor. I want the iRule to fully handle LB_FAILED events, so the client doesn’t get an error.
My iRule includes something like:
when LB_FAILED {
set myPool [LB::server pool]
set OldNode [LB::server addr]
log local0.info “n1=[LB::status node 1.1.1.2] n2=[LB::status node 1.1.1.3]”
LB::reselect pool $myPool
set NewNode [LB::server addr]
if {$OldNode == $NewNode} {log local0.alert “reselected same node!”}
}
Problem: The “reselect” command always selects the same node…
config b version | head
Kernel:
Linux 2.4.21-9.4.3.1.0smp
Package:
BIG-IP Version 9.4.3 14.3
Hotfix HF3 Edition