I need to have sessions destined for /Pool1/ or /Resources/ be sticky, ie, once a user gets to server1 in the pool for /Resources/, the same server1 needs to be used for /Pool1/ requests as well.
You should be able to enforce persistence outside the rule by creating a persistence profile of type “cookie” using cookie insert mode and applying it to the virtual server: Click here
I’m glad you asked. I’ve been doing some poking around on a similar question & have a few more details:
The way OneConnect works in v9 is somewhat different from v4, and in the earliest implementation (v9.0) we saw some unexpected behavior when combined w/cookie persistence, most of which seems to have been strightened out by the time 9.1 was released.
Cookie persistence works fine in 9.1 / 9.2, but apparently you MUST have OneConnect enabled to get cookie persistence to work properly /outside/ the context of iRules if connections will be kept alive by either LTM or the client.
If OneConnect is NOT enabled, the behaviour matches the v4 setting “web aggregate port, web parse first” which means aggregate only for same IP/port combination, and look at only the first request for persistence info. With that configuration, if subsequent requests from the same source submit different persistence cookies, they will be ignored, breaking cookie persistence.
CR62806 will be incorporated into a future release so the OneConnect profile is not required to use built-in cookie persistence with keepalive connections.
CR62806 will be incorporated into a future release so the OneConnect profile is not required to use built-in cookie persistence with keepalive connections.
Is this referenced to some other CR? It isn’t mentioned as open or fixed in the 9.1.2 release notes.
We are getting random errors where the requests from
Apache → F5 → Application Server
are received by the F5 but not sent on to the application with oneconnect enabled, and have so far been unable to reproduce with oneconnect off.
I’m not sure about the errors you’re seeing with OneConnect enabled, but…
Here is a bit more detail on the issue/request:
---------------------
You must use a OneConnect profile or an iRule to do “cookie persistence” for each cookie in a keep-alive session. If OneConnect or a iRule is not used, the keep-alive request is persisted to the node that was specified by the cookie in the first HTTP request in the keep-alive session. Any subsequent cookies are ignored.
Request: The customer would like to have this feature be included in the cookie persist profile. They do not want to enable OneConnect or use an iRule to achieve the per request cookie persistence.
---------------------
It doesn’t look like CR62806 will make it into 9.4 (or any prior version) according to the notes in the CR.
If it’s a fix you’d like to see included sooner or you want more detail on the issue, I’d contact support and ask to have them attach your case to the CR.
Hey citizen, I just saw your question upon looking at this post again.
If you you’re still wondering, the scenario in CR62806 is that requests from multiple clients are coming over the same TCP connection (as when a proxy opens a single TCP connection to a VIP). So a OneConnect profile is needed in order for the same persistence cookie to be parsed looking for different values (from user1 versus user2 for example).
Thanks, Aaron. I did get this response from support:
As for oneconnect and cookie persistence, the ENE I spoke to said that with oneconnect we will view all cookies within a single packet. If it was a pipelined packet from a proxy server, it would have more than one request from more than one client within a single packet. If you do not have oneconnect, we would just look at the first cookie in the packet even though there might be more than one cookie.
Without oneconnect, we will see persist based on the session cookie. It is not required to have oneconnect turned on for cookie persistence.