Want to scale Node.JS with HAProxy to 100K requests per second?

The following config is an example of HAProxy configuration that can be used to have a load balancer for your Node.JS/Java/C# Apps.

The problem that you can easily hit limit of around 65K requests per second if all you connections (for benchmarking f.e.) will be coming from the ip:port pair, which is explained by a limit between two pairs of ip:port that is called port exhaustion.

Below you can find an example of HAProxy configuration for load balancing. What out also for nbproc configuration if you see that HAProxy is getting overloaded which will increase amount of processes required (sudo service haproxy restart is required).

Useful links:

Building the future, team visibility advocate

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store