Forum Discussion
Nick_T_68319
Nimbostratus
Feb 20, 2009GTM - Static Persist
Can someone explain to me how static persist works? Here is my concern..
I have two datacenters hosting an e-commerce web site. In order for users to not lose their session, they NEED...
Nick_T_68319
Nimbostratus
Mar 05, 2009Posted By jquinby on 03/04/2009 8:37 AM
In that case, you could use an iRule to insert a "Data Center Affinity" cookie for each new user that comes in. The same iRule would check for the existence of the cookie - if it matches the DC that the user has come to, all is well, continue. If, however, the user shows up at DC-"A" with a cookie inserted for DC-"B", you could issue a redirect to the other VIP. If you have layer 2 connectivity between Data Centers, you could also accept the user at DC-A, but then route the request to a node member at DC-B. Or perhaps proxy the request.
There are a couple of different ways to skin this issue - DC affinity is a big deal for exactly the situation you've outlined. A change in a users's LDNS could have them at Site B when they began their session at Site A, which possibly Breaks Things in an Undesirable Way.
That is exactly how I would like to do it. Both datacenters are connected via a point to point gigabit fiber connection. So if the user came into the wrong datacenter, i would just like to proxy them via snat or whatever to the proper node that they are supposed to be on. Are there any examples of configurations/irules to do this?
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