Forum Discussion
KJ_50941
Nimbostratus
Mar 26, 2013irule pool member selection
how can I do this? currently I have a POOL with two member let's say host_1 and host_2. there is a F5 request to round robin between both hosts 1_2 if we see"/test if anything else redirect only to host_2.
I was thinking to create another pool with only host_2 assign to it ( test_Pool) . and use below iRule:
when HTTP_REQUEST {
if { [HTTP::uri] contains "/test" } {
pool test_8000_Pool
} else {
pool test_Pool
}
}
wil that work?
Thx
2 Replies
- Kevin_Stewart
Employee
You can still use the same pool, but specify which member to go to:when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains "/test" } { pool test_8000_Pool } else { pool test_8000_Pool member 10.1.2.200 80 } }
See: https://devcentral.f5.com/wiki/iRules.pool.ashx - KJ_50941
Nimbostratus
Thx so much.
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