ACE Load Balancing algorithm

Unanswered Question


I was reading Designing Content Switching Solutions last night. I came across a page that suggested Round Robin for HTTP connections, Least Conns for FTP connections, dst Hash for caching connections and so on.

Could someone please provide information or a link on which load balancing algorithm to use based on the application, is there some form of best practice for this?

Thank you,


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3.5 (2 ratings)
Gilles Dufour Fri, 08/14/2009 - 00:10


there is no best practices.

It depends on your applications and needs.

For example, for caching, some people prefer to optimize the disk space, and other the response time.

So, if you do destination hash, you guarantee that all traffic for one site is always handled by the same cache.

Therefore you optimize the disk space since you will not find the same object on all caches.

BUT if one site attracts a lot of connections, the cache device that handles that site will be overloaded (for example

Leastconn is a good option in theory.

The device that has less connections should receive the next one.

The problem is if you have flapping links or servers crashing or if you do a lot of maintenance and add/remove servers frequently.

This confuses the algorithm and is the source of a lot of bugs.

My recommendation is to go with roundrobin unless you have identify that you really need another algorithm.

And you can always start with roundrobin and see what happens...



This Discussion