Forum Discussion
Misty_Spillers
Nimbostratus
Jan 06, 2010Question about managing different types of persistence on one virtual server.
So sorry if the answer is been posted before, every time I search I don't get the results I'm looking for.
I have a situation where we would like to have one virtual server and different type of persistence per pool.
Example: We have a virtual server (mainsite1) with persistence set to cookie: cookie method: HTTP Cookie Insert. Which is required for the majority of pools. Our developers have implemented a product called Scaleout Software on a couple of pools which requires Persistence set to NONE.
Right now I'm getting this to work with 2 virtual servers (mainsite1 and mainsite2), which is complicated for the users to remember and it is requiring many redirects. Any way to get the pools with different persistence to work with one virtual server?
Thank you so much for any help.
- The_Bhattman
Nimbostratus
Hi Misty,when HTTP_REQUEST { switch -glob [HTTP::host] { "www.site1.com" { persist cookie insert "site1_poolA_Cookie" "0d 00:30:00" pool poolA } "www.site2.com" { persist cookie insert "site2_poolB_Cookie" "0d 00:45:00" pool poolB } } }
- hoolio
Cirrostratus
Hi Misty, - hoolio
Cirrostratus
The wiki page for the persist command states that 'persist none' disables persistence for the rest of the TCP connection. So if you use the rule as it is, if a client makes a request for /app2, I think any subsequent request on the same connection would not get a persistence cookie. You could test this by adding logging to the iRule and using netcat (assuming it's an HTTP VIP) to open a TCP connection and then send a request for /app2 and then one for /app1. See if you get a persistence cookie in the response to /app1.
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