Forum Discussion
Frank_69873
Nimbostratus
Jun 17, 2014F5 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 ...
Kevin_Davies_40
Nacreous
Jun 18, 2014Looks like you want manual persistence based on what values you supply. Easy enough.
when HTTP_REQUEST {
persist uie [HTTP::header select-server]
}
That will choose a server based on load balancing then when it sees the same data in the select-server header next time it will send the request back to the same server.
Frank_69873
Nimbostratus
Jun 18, 2014Thanks for answering all of this...
I want to force persistence up front. I will add the cookie to all the messages that are coming from my requesting servers. Then as you have said the LB first time load balances. After that it re-selects the same server. What happens if I hit the LB with 2 requests with the same cookie in almost the same instant?
Also assume the pooled server that is now being routed to because of the cookie, simply dies? LB gets a request, looks up that server because of cookie and tries to route to it but it is dead? What will the LB do? What if there are numerous requests at the same moment? Can I speak to a warm body about this? Thanks very much.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects