Forum Discussion
VictorC
Nimbostratus
Oct 24, 2017Can I add active member check to pool switch iRule?
Hello all,
I have a request from a user where they would like a URI redirection to a separate 3rd host. The current pool has 2 hosts. The condition is if it matches the URI redirection, but the 3rd...
Faruk_AYDIN
Altostratus
Oct 25, 2017Yes, It is possible. Change your iRule like this way:
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/myuri/abc*" {
if { [active_members myuri_pool] > 0 } {
pool myuri_pool
} else {
pool my-default-pool
}
}
default { pool my-default-pool }
}
}
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