elandreth_29975
Apr 08, 2019Nimbostratus
Pool select with active member check
Hello,
I have the irule below which was written to do the following:
All traffic that starts with path /abc goes to pool_A. If active members are less than 10 in pool_B then send to pool_C, otherwise send that traffic to pool_B
The issue I'm seeing is that all traffic that does not start with /abc is being sent to Pool C. It never goes to Pool_B even though pool_B has more than 10 members. There are no other irules or policies on the VIP. Any insight would be appreciated.
when HTTP_REQUEST {
if { [HTTP::path] starts_with "/abc" } {
pool pool_A
} elseif { [active_members pool_B] < 10 } {
pool pool_C
} else {
pool pool_B
}
}