Forum Discussion
Chris_Miller
Altostratus
Apr 26, 2010Best Way to do Cookie Persistence here?
I have one VIP and 5 "pools" that can service the VIP. Each pool is made up of 3 clustered servers so pool persistence is required, but not server persistence within the pool.
So, if a user hits our ...
Chris_Miller
Altostratus
Apr 27, 2010Posted By Michael Yates on 04/27/2010 08:14 AM
I believe that you are trying to replace the default behavior of the F5 Persistence Cookie and compensate for Pool Member failures with an iRule. You shouldn't have to do either since those features are available through Virtual Server and Pool setup options.
Use Default Cookie Behavior (Tracks the Pool and Pool Member selected by whatever Load Balancing Method is configured - Round Robin, Least Connections (Node), Least Connections (Member), etc):
HTTP Cookie Insert: Specifies that the system inserts server information, in the form of a cookie, into the header of the server response. This is the default setting.
If Pool Member Fails:
Set Pool setting "Action On Service Down" to "Reselect".
This should give you the behavior that you are looking for and decrease the setup complexity.
Michael - in this case, the separate pools have shared resources - ie, pool 1 has 3 servers but all 3 depend on a certain java resource. I need pool persistency, but not node persistency. So, I'm not compensating for pool member failure...something else does that for us...I'm compensating for complete pool failure. For instance, if you get sent to pool 1, you need to stay in pool 1. If pool 1 doesn't have any active nodes, now it's time to find a different pool.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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