Forum Discussion
youssef1
Apr 16, 2019Cumulonimbus
Hi,
Natively you can't do it but using an irule it's possible:
can you try the following irule (I don't test it, keep me in touch)
when CLIENT_ACCEPTED {
set mypick [LB::select]
If we have both node UP we force traffic trough node 1
if { {[active_members poolName] == 2} } {
First node
if { [LB::status pool prod_443 member 1.1.1.1 443] eq "up" } {
pool prod_443 member 1.1.1.1
second node
} elseif { LB::status pool prod_443 member 2.2.2.2 443] eq "up" } {
pool prod_443 member 2.2.2.2
} else {
eval $mypick
}
}
}
Regards