Forum Discussion
Teemu_Kunnari_1
Nimbostratus
Jan 18, 2016Directing traffic to a node based on a specific uri only if the node is up
Hi,
A customer is hoping to direct traffic to a /SOMEURI and when request is for that URI traffic should go to a different pool and member than the original ones on the VS. And only to this new ...
iaine
Nacreous
Jan 19, 2016You could do something like this.
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/someuri" } {
if { [active_members other_pool] >= 1 } {
pool other_pool
}
} }
This will check for the existence of a specific URI and if it matches then check that your secondary pool is available, based on health monitors, if it is up then the traffic for this uri will be passed to it. If the pool is down, or the traffic is for other uri's then it will follow the default logic of the VIP
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