For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

santsboy_145140's avatar
santsboy_145140
Icon for Nimbostratus rankNimbostratus
Apr 01, 2014

Jsessionid between Data Centers

Hi,

 

we want to deploy twin DCs (active/active) and we would like to use two GTM (one in each DC) and four LTM (two in each DC).We are using Hybris application with Jsessionid.

 

My question is, there is a method to have the four LTM be aware of Jsessionid in order to send the user to the same server everytime even if the user finishes in a different DC? There is a way to provide sticky sessions between load balancers in different DCs?

 

Thank you very much.

 

Regards,

 

JJBN

 

3 Replies

  • Hi santsboy - yes there is, but not using JSESSIONID. The F5 persistence cookies themselves provide this. What you need to do is;

     

    • establish connectivity from LTMs in site A ==> servers in site B
    • establish connectivity from LTMs in site B ==> servers in site A
    • create pool in site A which includes servers from site A and servers from site B (at a lower priority group than the site A servers)
    • create pool in site B which includes servers from site B and servers from site A (at a lower priority group than the site A servers)
    • enable cookie insert persistence at each site (I assume you have already done this)

    This means that if you hit site A (for example) with no persistence cookie, only servers in site A will be chosen, however if a user session moves between sites (and it does happen, even when GTM persistence is enabled), the LTM looks at the cookie (which decodes to an IP:port after all) from the server in the other site and when it sees that server in it's pool, it sends the request to that server, even though that server may not be currently 'activated'.

     

    I hope that makes sense - let me know if any questions.

     

  • Thanks for the info LheartF5.

     

    We will have VLANs across DCs, Can 2 pools (DC1 and DC2) be in the same VLAN?

     

    Another question is that I would like to know if I add a new webserver to a pool, will the LTM automatically discover that there is a new WebServer and will be able to start to send traffic?

     

    Thanks a lot for the help.

     

    Regards,

     

    JJBN

     

  • santsboy, yes we can add both pools from the same vlan. Also when you add a new member to pool , vip will send the traffic to the pool once it's available(Memeber will be in high priority group, when priority group activated to serve the traffic)