Forum Discussion
Ravi_Rajan_7549
Nimbostratus
Mar 17, 2008Redirection with Multiple pools
Hi,
I am not very experienced with irules and have few queries as below -
I have two pools ex. poola and poolb. Each pool has few servers like -
poola - server1, server...
Nicolas_Menant
Employee
Mar 18, 2008Hi,
in case of huge number of pools you may use this method:
class mylist {
"/this pool1"
"/that pool2"
}
when HTTP_REQUEST {
set lookup [HTTP::path]
set myPool [findclass $lookup $::mylist " "]
if {$myPool != ""}{
pool $myPool
}
}
You have the syntax here: Click here
Be careful if you have uri starting with the same directory that should load balance different pools. With findclass it will stop at the first line in your class that match the request
if that's the case you may have a look here: Click here
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