Cookie persistence: URL or Domain: which is optimized for LB management?
Let's say I have 3 web applications using the same domain name but different hostnames: app1.domain.com app2.domain.com App3.domain.com
the three applications host content accessible from all the three urls, meaning when I open app1.domain.com I'm also accessing content from app2 and app3. I have 4 servers hosting the 3 apps behind the LTM. when I open app1 and trace the diffrent web request I can see that for my single session the BIG-IP is redirecting requests to 3 servers based on url. which means in my session I'm using content from the 3 servers, one url per server. I tought about changing the persistence to a domain cookie using an iRule to force the BIG-IP to keep my session on the same server since this server hosts the 3 apps. Seems logical and somewhat better for user experience. if something goes wrong in the session I know it's on this server. Any best practices, recommendations or expert insights are welcome.