Forum Discussion
Priority group failback
I need to figure out how to sever a persistent TCP connection in order to allow my lower priority group to failback to the higher priority group. Anyone know of an iRule way of doing this?
Basically, I would want to issue a TCP RST or FIN to the lower group server/client in the event that the higher group comes back online.
Thanks for any ideas,
Bryan
4 Replies
Hi!
Assume that 10.0.0.1 is the primary server and 10.0.0.2 is the fallback this should work (per request):
when HTTP_REQUEST_SEND { if { [LB::status pool poolname member 10.0.0.1 80] equals "up" and [IP::addr [LB::server addr] equals 10.0.0.2] } { reject } }
If you have more than one server in the priority group, just add some "or" to the if statement.
/Patrik
- Sridhar_111831
Nimbostratus
Patrik - did the irule work.. pls share your results.
I think I tested it back then and it worked. You might want to test it yourself in a test environment though to make sure your client can handle reconnecting.
And don't forget to actually configure the priority groups. Otherwise you fill get some less desirable results.
/Patrik
- Sridhar_111831
Nimbostratus
thank you....
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