Forum Discussion
grilledcheez_21
Nimbostratus
Sep 08, 2015Priority Group Failover
Hi,
I have a pool with 4 servers in it. I have them in priority of 100,90,50,40. We did a failover test and started with failing the Primary server with the 100 priority, which failed over fine ...
grilledcheez_21
Nimbostratus
Sep 09, 2015So, I found some iRule syntax for a failback iRule with a two server priority group. I took that and extended it for a four server priority group. Just wanted someone to take a look to see if it makes sense.
when CLIENT_ACCEPTED {
if { [LB::status pool poolname member 10.0.0.1 1235] equals "up" and [IP::addr [LB::server addr] equals 10.0.0.2] or [IP::addr [LB::server addr] equals 10.0.0.3] or [IP::addr [LB::server addr] equals 10.0.0.4] } {
reject
} elseif { [LB::status pool poolname member 10.0.0.1 1235] equals "down" and [LB::status pool poolname member 10.0.0.2 1235] equals "up" and [IP::addr [LB::server addr] equals 10.0.0.3] or [IP::addr [LB::server addr] equals 10.0.0.4] } {
reject
} elseif { [LB::status pool poolname member 10.0.0.1 1235] equals "down" and [LB::status pool poolname member 10.0.0.2 1235] equals "down" and [LB::status pool poolname member 10.0.0.3 1235] equals "up" and [IP::addr [LB::server addr] equals 10.0.0.4] } {
reject
} else {
not reject
}
}
Let me know if this iRule makes sense.
Thanks.
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