The customer wants to control disabling of specific nodes. We have therefore implemented a “receive disable string” in the monitoring definition, enabling him to put “offline” into a static monitoring page, making the BigIP set the according pool member to “disabled”.
Now the customer complains about persistent connections still being directed to the disabled node (which is obviously right).
I thought about an iRule like this:
when LB_SELECTED {
if { [LB::status pool poolname member [LB::server addr] port [LB::server port]] eq “session_disabled” } {
LB::reselect
}
}
But I’m unsure whether the LB::reselect will work for persistent connections and select a non-disabled pool member.
Any hints / comments on this?
Many thanks in advance.