Forum Discussion
Brian_Deitch_11
Sep 22, 2011Historic F5 Account
Dynamic query of all pools
I'm working on a dynamic iRule that will load balance based on the URI. I have that part working fine but the pool selection deviates from our standard. I need to figure out how I can query all the po...
Brian_Deitch_11
Sep 28, 2011Historic F5 Account
Michael,
I want to take the lbforlder variable and determine if it contains any of the characters that would be found in any of the existing pools. In a perfect world, my current iRule would work but our naming structure is pool_appname_port. Since I can't determine what port the pool is on, I would hope to scan the list of current pools and select from there.
Bhattman,
I've seen that article and tested it. That works but I want to see if I can do it in an iRule.
Hoolio,
That logic makes the iRule more robust but still doesn't fix my problem of constructing my pool name.
All,
Currently I build the pool name and it looks like this pool_login. But in reality it should look like pool_login_8080. But keep in mind, the ports are random so adding
set lbfolder pool_[string trim $lbfolder "/"]_8080
wouldn't work because the port could different, e.g., 7777, 80, and so on.
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