Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to provision machines as a load balancer (probably using HAProxy), now the question is

  • Does a machine with 512MB/2CPU cores suffice?
  • Is load balancing more RAM or CPU intensive (or both)?
  • What's a good configuration for a LB machine?
share|improve this question
up vote 6 down vote accepted

In the tradition of my people, I'm going to have to answer your question with a question of my own: Load balancing what, and how much?

Load balancing is usually more CPU intensive than it is RAM intensive, but it is by no means a simple one-or-the-other deal. Many different factors play into the performance requirements of the machine - everything from the amount of traffic, the length of the states, the kind of requests, the load balancing algorithm - all of these have vastly different requirements. Round-robin is one of the simplest algorithms for balancing, and requires little more than the I/O switching necessary to do so, but as you add more complex algorithms like sticky-cookie or least-connections, memory usage will rise, and as you add redirection rules, the load balancing software will have to increase the amount of work that it does.

I can't answer any of your three questions directly without a lot more information, but, in general, the following applies: HAProxy is extremely fast, and for almost anything you are going to be doing, you are likely not going to come close to hitting the limits of any modern machine's capacity doing simple load balancing until you get up into the range of 10s and 100s of thousands of simultaneous tracked connections.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.