Forum Discussion
Priority Group Activation Failback with HTTP Cookie Insert
I have written the below iRule. Could you please validate?
when LB_SELECTED {
if { [IP::addr [LB::server addr] equals "low-priority-ip"] } {
if {[LB::status pool pool_name member 1.1.1.1 8080 ] or [LB::status pool pool_name member 1.1.1.2 8080 ] equals "up"} {
LB::reselect
}
}
}
1.1.1.1 and 1.1.1.2 are the High priority IPs of the same pool "pool_name"
- Simon_BlakelyMar 04, 2021Employee
That looks OK from a logical perspective.
Rather than checking if the High Priority pool members are available individually, I would just check to see if the number of available pool members is greater than 1, and reselect in that case.
when LB_SELECTED { if { ([IP::addr [LB::server addr] equals "low-priority-ip"]) and ([active_members pool_name] > 1) } { LB::reselect } }
Give that a test.
- igorzhukJul 05, 2023Altostratus
But LB_Selected - its only ones in connections, how the event trigger in same connections?
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