Forum Discussion
Jagadeesh
Altostratus
Sep 27, 2023what is the Pool limit to do URI redirection using irule
I have a VCMP guest LTM virtual box with 1 Core running on BIG-IP 15.1.9.1 Build 0.0.5 Point Release 1 I have a requirement , With Single VIP listening on Port 443 and selecting the pool using iRule...
Jagadeesh
Altostratus
Sep 27, 2023Thanks Paul , Yes it one URI per pool.May i know if there is any KB article that i can refer.
Paulius
MVP
Sep 27, 2023Jagadeesh I don't know of a KB article off the top of my head but I'm sure one exists. The following is what I put together assuming you have a default pool to handle all traffic that isn't defined in the data-group.
when CLIENT_ACCEPTED priority 500 {
set DEFAULT_POOL [LB::server pool]
}
when HTTP_REQUEST priority 500 {
set URI [string tolower [HTTP::uri]]
if { [class match -- ${URI} eq CLASS-URI-TO-POOL] } {
set TEMP_POOL [class match -- -value $URI eq CLASS-URI-TO-POOL]
pool ${TEMP_URI}
} else {
$DEFAULT_POOL
}
}
In your data-group called CLASS-URI-TO-POOL the string field would have the path and the value field will be the pool name that matches it.
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