Forum Discussion
Mark_Harris_608
Cirrus
Sep 22, 2009Election Hash rule
I'm trying to implement the election hash rule on v9.0.5 and discovered it requires v9.4.2+. First, does anyone know what about the rule requires the later version of TMOS and secondly will a normal ...
Mark_Harris_608
Cirrus
Sep 23, 2009Would you agree that this is the way to insert the static array in the original election hash rule?
when HTTP_REQUEST timing on {
set GOOD_NODES {}
set NS {192.168.1.7 192.168.1.10 192.168.1.11}
foreach N $NS {
if { [LB::status pool member $N 80] eq "up" } {
lappend GOOD_NODES $N
}
set S ""
foreach N [GOOD_NODES]{
if { [md5 $N]HTTP::uri[] > $S } {
set S [md5 $N]HTTP::uri[]
set W $N
}
}
pool member [lindex $W 0] [lindex $W 1]
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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