Forum Discussion
Howard_Poz_1055
Nimbostratus
Apr 03, 2006Need Help - Override tcp session timeout due to Source_addr Persistence
New to iRules:
====================
Need assistance in getting traffic directed back to a "preferred" node when it comes back online - Essentially to over-ride the tcp session timeout value ...
Colin_Walker_12
Apr 03, 2006Historic F5 Account
The way this would be used in the scenario it sounds like you're outlining, is that you would create seperate pools for your "preferred" and "fallback" hosts.
You would then configure your VIP to send traffic to the "preferred" pool, with no fallback host setup.
Then, you'd put this rule in place, like you listed above:
rule nopersist_failover {
when LB_FAILED {
persist none
LB::reselect pool fallback_pool
}
}
What this does is makes it so that if your preferred pool is ever unavailable, the iRule will route requests to your fallback pool, but only after disabling persistence. This means that as soon as the preferred pool is back online, requests will automatically be sent there again.
HTH,
-Colin
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