Forum Discussion
Sabari_Nath_179
Dec 04, 2014Nimbostratus
Configuring multiple pools under same VIP in F5 Load Balancer
Hi Experts,
I have a requirement to have 2 pools added under the same VIP. Does F5 allow to do this ? If so, how ?
The reason I want to do like this is given below.
Say the URL "abc.co...
Sheigh_65772
Cirrus
Sabaris,
Either one of these should work, though I believe the second one consumes less resources due to the switch statement. The 'string tolower' doesn't have to be in there, though it could also be in both, just depends how you want to do it.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/newapp" } {
use pool pool_abc_newapp
} else {
use pool pool_abc
}
}
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
switch -glob $uri {
"/newapp*" {
use pool pool_abc_newapp
}
default {
use pool pool_abc
}
}
Sabari_Nath_179
Dec 04, 2014Nimbostratus
Hi...writing the iRule for redirecting to seperate pools is fine. The question here is if these two pools can be mapped under the same virtual server VIP. If not can a pool be created amd not relate to any VIP and still redirecting traffic to that stand alone pool will still work
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