Forum Discussion
Vasile_Balan_95
Nimbostratus
Oct 11, 2006node selection string from v 4.x to v 9.x
Hi,
I need help with converting the node selection string
node(findstr(http_uri, "?ip=", 4, '/') + ":80")
from the persistence tab on v 4.x to v 9.x. i know there is no s...
Deb_Allen_18
Oct 12, 2006Historic F5 Account
Hi Vasile -
Something like this should work in 9.2 (replacing POOL with the name of the default pool):
when HTTP_REQUEST {
set myNode [findstr [string tolower [HTTP::uri]] "?ip=" 4 "/"]
if { ($myNodeIP ne "") and ([LB::status pool POOL member $myNodeIP 80] ne "down") } {
pool POOL $myNodeIP 80
}
}For the condition using LB::status, you will need to be running at least 9.2. In older 9.x versions, you can instead add an LB_FAILED event to catch that condition and load balance in the default pool instead:
when HTTP_REQUEST {
set myNode [findstr [string tolower [HTTP::uri]] "?ip=" 4 "/"]
if { $myNodeIP ne "" } {
pool POOL $myNodeIP 80
}
}
when LB_FAILED {
LB::reselect
}HTH
/deb
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
