Forum Discussion
What will happen for the pool redirection if all members are down
Hi nitass,
Thanks for your inputs and confirmation for resetting the connection when all members are down.
I have another iRule - not within the iRule I shared so priority won't differ here.
let's say the iRule I shared before is iRule-2, and the other iRule is iRule-1. The name reflect their orders to the VS.
iRule-1 has more specific conditions to match i.e the URI will be /xyz/string-1 instead of /xyz*, and when match is there it will redirect, select the same pool (Pool_X) and disable all the events - preventing any further irules processing.
From the above, is there any thing causing F5 to forward /xyz* to the default pool.
iRule-1
when HTTP_REQUEST {
if {([HTTP::header exists "X-Forwarded-For"]) and ([string tolower [HTTP::uri]] contains "/xyz/string-1")} {
switch -glob [HTTP::header values "X-Forwarded-For"] {
"some-value" {
HTTP::redirect "http://www.example.com/xyz/string-2"
pool Pool_X
event disable all
}
}
}
}
iRule-2
when HTTP_REQUEST priority 10 {
switch -glob [HTTP::path] {
"/xyz*" -
"/YwZ*" -
"/AbC*" { pool Pool_X }
default { pool Default_Pool }
}
}
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