haproxy is a high performance TCP/HTTP load balancer. I’ve been using it for years now and have never experienced any problems with it. There are loads more configurable options but this simple config below will get you started.
The below configuration is for haproxy 1.5. I have not tested it with anything newer. Version 1.5 is what comes with Debian 8 (jessie).
To use this configuration, execute the following command:
haproxy -f <config path>
This will run haproxy in the background as a daemon.