Chris_Miller
Apr 26, 2010Altostratus
Best 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 site, their first request should be sent via least connection load balancing to a pool. I planned on creating datagroups with the IPs of each pool and based on that, setting a cookie. So, if the user got load balanced to pool 1 which was served by 1.1.1.1-1.1.1.3, I'd create a datagroup for that ip range and would send a cookie in the response for pool 1. When traffic returned, I'd check that the cookies existed and send to the corresponding pod.
So, 1 VIP, 1 iRule, 5 Pools, 3 servers per pool...what's the best way with an iRule to do this?