What is an open source load balancer that allows for hash based balancing? I would like to do hash based load balancing of a URL but first remove the user specific arguments from the URL. Basically want to increase Varnish's cache performance by adding URL to node persistence.
Example: example.com/foo/usertoken/bar
Where the hash would be based on: example.com/foo/bar.
- Edited for clarity, bias, and URL modification. *
"Best" is in the eye of the beholder, so this answer is only an approximation.
HAProxy is great if:
nginx is great if:
HAProxy and nginx are both able to load balance according to a hash of the requested URL.
Varnish is a capable load balancer. It does HTTP/1.1 against the client and the backend, has health probles, can do target URL hashing. You just turn off the caching if you plan on doing caching in a separate tier.