Forum Discussion
PicassoMendez
Nimbostratus
May 12, 2014No Default POOL
We have an irule for a vip that sends the request to 1 of 4 POOLs depending on the URI. How would you make it so that if 1 of the URIs is not present that no default POOL is available and the reques...
Kevin_Stewart
Employee
May 12, 2014This is how I might do it:
-
Create your 4 pools and apply application-specific monitors to each (to test availability of a given URI).
-
Apply the following iRule logic (modify as required):
when HTTP_REQUEST { if { [active_members poolA] < 1 } { drop } else { switch -glob [string tolower [HTTP::uri]] { "/app1*" { pool poolA } "/app2*" { pool poolB } "/app3*" { pool poolC } default { drop } } } }
So in this case, assuming poolA is the pool that contains the URI that must always be available, the monitor applied to poolA will determine if the given URI is alive. If not, drop the request. Otherwise switch between the pools based on the URI.
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