Forum Discussion
Gbps_31870
Oct 23, 2012Nimbostratus
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 }
}
}