Forum Discussion
Help with URI string-based session persistence
- Jun 11, 2015
If this happens the LB just sends the request to the same node that the TCP session is tied to - but the iRule still logs as seeing the new strID value. I was confused and expected this to create a new persistence record and load balance the request, but something tells me I would need more logic in my iRule to detach the connection and re-load balance it with a new persistence record.
you can use oneconnect profile. it will do that for you.
Just wanted to update that I discovered where my confusion lied: I was seeing persist records drop out of the persist table and not be re-added because my TCP sessions were still active when I was sending follow up HTTP Requests. So long as I opened a new browser window, it would then create a new persist record due to a new TCP connection.
I tested and verified that two source IPs will get stuck to the same node when a persist record exists for a given strID value. So I realized where my testing was invalid, and this seems to be acting as I would expect now!
The only potential use case that I will need to look into to verify it isn't needed is where a request for a different strID value comes in on the same TCP session. If this happens the LB just sends the request to the same node that the TCP session is tied to - but the iRule still logs as seeing the new strID value. I was confused and expected this to create a new persistence record and load balance the request, but something tells me I would need more logic in my iRule to detach the connection and re-load balance it with a new persistence record.
I'm not sure the above situation needed, so I am going back to our development staff for further clarification on how the requests are coming into the VIP with the application.
Thank you again for your help!
Recent Discussions
Related Content
* 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