Forum Discussion
Andy_Herrman_22
Nimbostratus
Jul 09, 2007Dynamic Pool Names
I'd like to be able to select which pool to use based on some data in the HTTP request, but I don't want to have to hard code the pools in the iRule. Is it possible to dynamically create the pool nam...
Jul 09, 2007
Absolutely. The only issue you lose is load time validation. If you try to use a dynamic pool name that isn't defined in the configuration, you'll get a runtime error causing the connection to abort. You'll want to enclose your pool command with a "catch" statement to ensure that the runtime error doesn't occur and if it does either assign a default pool, redirect the user somewhere, or use an HTTP::respond to return status content directly to the client.
Here's a post on the "catch" statement:
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&forumid=5&postid=10280
Click here
-Joe
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