Forum Discussion
elandreth_29975
Nimbostratus
Apr 08, 2019Pool 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, othe...
Stanislas_Piro2
Cumulonimbus
Apr 08, 2019Hi,
Can you change the code with log commands:
when HTTP_REQUEST {
if { [HTTP::path] starts_with "/abc" } {
pool pool_A
} elseif { [active_members pool_B] < 10 } {
log "pool_C selected, there are [active_members pool_B] active members in Pool_B"
pool pool_C
} else {
log "pool_B selected, there are [active_members pool_B] active members in Pool_B"
pool pool_B
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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