Forum Discussion
Bruce_Hampton_1
Nimbostratus
Aug 07, 20061 VIP < Multiple pools
I have a fun little situation where I am terminating SSL, parsing the URI and picking a pool. Easy enuf... but now is where I could use a little help *grin*
I want to be able to switch back and forth between the pools at will ( based on URI ) and have 2 separate persistence cookies to keep me on the chosen member.
I can switch pools just fine, and I can persist just fine during the first time in to each pool. The challenge comes in when I go from pool_HTTP_Online to pool_PrintLastYear back to pool_HTTP_Online. The cookie is present but doest not appear to be honored.
Any help would be appreciated.
=====================================================
rule irule_persist_Multiple_Pools {
when HTTP_REQUEST {
if {[HTTP::uri] contains "s_online_2004"} {
persist cookie insert LastYear 31622400
pool pool_PrintLastYear
}
else {
persist cookie insert TAOL 31622400
pool pool_HTTP_Online
}
}
}
virtual VIP_Online_CLEAR {
destination 172.16.1.10:http
ip protocol tcp
profile oneconnect pf_http_Online tcp
persist pf_OL_05_Final
pool pool_HTTP_Online
rule irule_persist_Multiple_Pools
}
- Deb_Allen_18Historic F5 AccountCreate a OneConnect profile with mask of 255.255.255.255 and apply it to the virtual server, and you should be good to go.
- Bruce_Hampton_1
Nimbostratus
Thank you for the reply. - Deb_Allen_18Historic F5 Accountah, I missed that, sorry.
- Colin_Walker_12Historic F5 AccountHave you tried removing the first cookie before you add the second, and vice versa?
- Bruce_Hampton_1
Nimbostratus
Colin and Deb, thanks for the replies. - BASLI_amine_788
Nimbostratus
Hi, - Eric_Grepps_264
Nimbostratus
We are doing this very same thing using the default cookie persistance profile. If you do not specify a cookie name, the BigIP creates it own name for each pool. - Bruce_Hampton_1
Nimbostratus
Thanks for your input Eric. I was also able to make this work; the *trick* for me was to NOT name the cookie in the profile, and remove the additional cookies from the rule. I have no clue why it would care what the cookie name is - but once I defaulted to the system supplied name - it did exactly as I wanted and as Eric suggested he was doing. - Eric_Grepps_264
Nimbostratus
If you specify the name of the cookie, then it will always use that cookie name for each pool. So when you jump between pools the cookie will be overwritten since it is the same name. By not specifying the name the BigIp will write a different cookie for each pool. - Bruce_Hampton_1
Nimbostratus
Yes I have lots of those tools... funny part was that I was specifying different cookie names for each pool. But somehow it wasn't performing that way. Thanks once again for all the help.
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