Forum Discussion
Default Pool and iRules
Hello,
I have a default pool of servers assigned to a VS object and then also have an irule that specifies specific traffic (URIs) should be directed to different server pools.
How does the LTM treat all the traffic to the LB object? Does all traffic go to the configured "default pool" or is it inspected and then directed to the "default pool" only if it doesn't meet the criteria in the iRule? Our iRule is below and the last pool referenced is the same pool configured in the "default pool" on this object.
Thanks in advance.
Diane
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "/pamspersonifywebservice" } {
if {[active_members PAMS_PersonifyWebservices] > 0} {
pool PAMS_PersonifyWebservices
} else {
HTTP::redirect "http://maintenance.acc.org"
event disable all
}
}
elseif { [string tolower [HTTP::uri]] contains "/pamsrestservices" } {
if {[active_members PAMS_RESTWebservices] > 0} {
pool PAMS_RESTWebservices
} else {
HTTP::redirect "http://maintenance.acc.org"
event disable all
}
}
elseif { [string tolower [HTTP::host]] contains "webservices.acc.org" } {
if {[active_members Webservices_RDWS] > 0} {
pool Webservices_RDWS
} else {
HTTP::redirect "http://maintenance.acc.org"
event disable all
}
}
else {
HTTP::respond 404 content "Unrecognized request to [HTTP::uri]" "Content-Type" "text/html"
}
}
1 Reply
Hi Diane,
the behavior is a little bit weirdo...
When ever you start a TCP-Connection to the Virtual Server the
is pre-selected but can be overwrtitten by using thedefault pool
command.[pool]For OneConnect-enabled HTTP Virtual Servers the last selected
would always stick to the TCP-connection.[pool]For OneConnect-disabled HTTP Virtual Servers the
would be automatically reselected on every subsequent HTTP request, but not for 11.5.3 HF2, 12.0.0 and 12.0.0 HF1 (its currently a bug^^).default poolFor further information refer to...
https://support.f5.com/kb/en-us/solutions/public/9000/800/sol9800.html
https://devcentral.f5.com/questions/sol9800-dokumentation-bug
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
