Forum Discussion
irule for implementing hash persistency
HI stephan,
Just got another hurdle , please find below mail
This is the solution given to end user
HI Robert ,
We don’t need to modify anything on client or server level for configuring cookie persistency. We required those information only if we insists to Use Hash persistency which we are currently using and not working as expected.
If we use cookie persistency F5 will insert cookie in client browser . and there is no need of any modification on client or server end. Please find below information about cookie insert method. This will make sure the user will be sent to same server as long as his session is valid . For new incoming traffic load balancing will work based on load balancing method ( roundrobin) .
HTTP Cookie Insert method If you specify HTTP Cookie Insert method within the profile, the information about the server to which the client connects is inserted in the header of the HTTP response from the server as a cookie. By default, the cookie is named BIGipServer, and it includes the encoded address and port of the server handling the connection. The expiration date for the cookie is set based on the timeout configured in the persistence profile. HTTP Cookie Insert is the default value for the Cookie Method setting.
Regards, Kaladhar
Reply 1
I agree, this would probably work for users accessing the website using web browsers.
But web service client (SOAP) applications will not necessarily read the cookie header and/or pass the cookie back. Existing applications will almost certainly need to be updated to specifically do this.
Reply 2 ? Wouldn’t the web services not need persistence at all? The only sites we have that need to worry about the cookies would be the ones that use that report control.
Reply3 No, that's correct. The web services don't need persistence at all. We WANT those requests to be distributed across both web servers.
But we need a mechanism that DOES accomplish the load distribution without the use of cookies. Since our web services don't use cookies.
Can we add an irule that users hitting vip via browser should use cookie insert and all other request should use Source address persistence ?
if yes please let me know if u have any similar irule handy
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
