Whats a good droplet size for HAProxy loadbalancer

Posted October 23, 2015 3.8k views
CentOSPHP FrameworksHigh Availability

Hi Guys,

Im looking to set up an HA proxy load balancer for one of my sites. Ive set it up before for dev environments but this is for a live site and wanted to make sure I have a powerful enough droplet. I just want a Layer 4 set up to balance my traffic between two app servers.

Can anyone recommend a good size/spec droplet to run HAProxy?

What do you guys run it on?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

This mostly depends on your HAproxy configuration and how many concurrent connections you are looking to support. HAproxy is also heavy on the CPU usage.

How many concurrent connections are you looking to handle?

  • Hi thanks for your reply, so looking at the Apache Stauts page its reporting:
    6.2 requests/sec - 56.1 kB/second - 9.0 kB/request

    So OK not exactly on par with any Massive sites but just wanted to create a backup which HA Proxy can point to in the event my main server was to fail.

    The server also has a Max Client setting of 380.