Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am interested in setting up HAProxy for use as a load balancer for a set of small traffic web applications. The use is growing and might become medium sized in the near term (6 months or so). Mainly we are looking balance load becuase some customers want their own dedicated server, some what to be as low cost as possible so to accomodate we seem to need a load balancer.

I looked at the HAProxy home and some of the blogs but they really dont get into the specifics or are huge sites using sun servers for the application

What kind of hardware and which distrobution would anyone recommend in terms of processor, memory, storage and distrobution are you using or would recommend for such an application?

thanks in advance

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Considering that HAProxy is just modifying the header of each packet that goes thorough it, you need just a powerful CPU. I'm running a HAProxy for a large website on a 3GB DDR3, 7200rpm HDD SATA and a Xeon E5450. You need some bandwidth for this because all the traffic will go thorough this server (even if you are using nat or route)

share|improve this answer
    
so any modern core2 duo or quadcore should do the trick? and how much ram 2-4gb? –  MikeJ Jul 14 '10 at 14:17
2  
My Xeon is quad, but I never had the load on it higher than 50% (and this happened in peaks). I'm running with 3GB on DDR3 (on a HP DL360-G6) and I never had problems. I recommend you to make some graphs for the network traffic so you can detect networking bottlenecks. –  MihaiM Jul 14 '10 at 14:28
2  
A dual core is enough, neither haproxy nor the system will make use of the additional cores. But on a properly configured Core2duo 2.66 GHz, you can achieve up to about 40000 new connections per second, which it far more than enough for 99.99% of the web sites. Don't forget to put some RAM. With 4 GB you can support about 100000 concurrent connections. I strongly suggest that you install a 64-bit system. What bandwidth are you expecting to process ? –  Willy Tarreau Jul 15 '10 at 6:28

Your Answer

 
discard

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.