Bruce_Hampton_1
Aug 07, 2006Nimbostratus
1 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
}