F5 Load Balancer using Cookies to route traffic.
We have many F5 Load balancers. I am investigating using Cookies to ensure that my traffic gets routed to servers behind a load balancer. The cookies that we are planning to use are for devices that will be served by the server behind the LB. The cookies will be inserted by the requesting devices. These servers will be doing protocol Conversion for the device downstream.
An HTTP request will hit the LB with a cookie that points to a device the we want served. The LB looks into its cache and sees that there is no cached relationship for this cookie so it will set one up. From then on any request with this cookie will get routed to the previously picked protocol converter. Yes/No?
What happens if 2 new requests come in with the same cookie that is not yet in the cache? I hope the LB will only assign one server to them.
The LB will have a health check going on with the server behind it. What happens if the health check fails? Does the cache become invalidated? The new requests for that cookie get routed to a new server?
Is there a way to send a command to the LB to have it clear the entire cache so that all new requests get routed to new servers?