Forum Discussion
TMcGov_92811
Nimbostratus
Feb 18, 2009Forcing the use of a new pool and new member based on the current pool and member
I have a situation where I have an iRule that will direct HTTP requests to a certain pool based on a URI. Other traffic will go to the default pool. Here is a snippet of that.
when HTTP...
The_Bhattman
Nimbostratus
Feb 18, 2009I believe so.
You might want to take a look at the following. Keep in mind that this is more untested psudeo code. It's simply to get you thinking about how it can be used to pin down. Of course there are other briliant minds out there that probably have a better answer and I hope they do.
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"*/cf/*" {
switch $pin {
"10.77.177.88" { node 10.77.177.78 80 }
"10.77.177.89" { node 10.77.177.79 80 }
"10.77.177.90" { node 10.77.177.80 80 }
default { pool Pool-A }
}
}
"*/hf/*"
{
switch $pin {
"10.77.177.78" { node 10.77.177.88 80 }
"10.77.177.79" { node 10.77.177.89 80 }
"10.77.177.80" { node 10.77.177.90 80 }
default { pool Pool-B }
}
}
}
when LB_SELECTED {
set pin[LB::server addr]
}
hope this helps
CB
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