Forum Discussion

JustCooLpOOLe's avatar
JustCooLpOOLe
Icon for Cirrocumulus rankCirrocumulus
Aug 15, 2016

Cookie Persistence Profile Question

I was asked this question by a developer recently and wasn't sure how to respond. I may not be understanding the question but thought I would throw it out there:

 

  • does the Cookie profile target all cookies or just one that you specify?
  • If the cookie does not exist, does it just default to traditional Round Robin?

Any help would be greatly appreciated.

 

2 Replies

  • R_Marc's avatar
    R_Marc
    Icon for Nimbostratus rankNimbostratus

    A persistence profile is attached to the virtual. With cookie insert, the cookie name is some value (by default something like BIGIP-poolname, though you can statically define it to something else).

     

    The cookie value identifies the backend server and port. If a connection comes in with a cookie, the value is looked at, and assuming that server is available, it sends it to the pool member identified.

     

    If there is no cookie presented, it just uses whatever LB mechanism is specified (like round robin).

     

    Note, the cookie values are just encoded IP and Port of the backend server. It would be a good idea to add encryption, if your version of code supports that.

     

  • You can: ADD (insert) / REWRITE / PASSIVELY MONITOR, cookies. You can also create a fallback persistence profile (nearly always source address persistence), on a vs