Forum Discussion
Ben_Lamb_227759
May 03, 2016Nimbostratus
Persistence causing problems with redirection iRule?
I have a slightly strange case on website where I am seeing traffic being redirected strangely, and I believe it may be down to my persistence. I was wondering if anyone could advise on if what I am ...
- May 03, 2016
You're missing a else-clause (default action) in your iRule. In other words, once a request lands in your test pool, there's no way to return to default pool (since the balancing decision is already locked in).
when HTTP_REQUEST { Save the name of default pool (as configured in VS Resources Tab) as a variable, before it can be modified by conditional actions below set poolDefault [LB::server pool] if { "[HTTP::host][HTTP::uri]" starts_with "www.website.com/test" } { pool test_pool } else { pool $poolDefault } }
Similar problem here: https://devcentral.f5.com/questions/incorrect-load-balancing-when-disabling-oneconnect
Tom_De_Boeser_1
May 03, 2016Nimbostratus
Post your iRule... we'll be able to help a bit better.
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