Using HAproxy in multi core environments
HAproxy is a great load balancing solution that we use at Instela . We use HAProxy in a 8-Cores bare metal machine and we also use it to offload SSL encryption. Although HAproxy is very effective solution in terms of CPU usage, SSL offloading obviously needs more CPU power, thus, using only one core could be easily a bottleneck. Apart from this, also we did not want to waste other cores and we decided to activate not recommended multi core support. The configuration is pretty straightforward. At the global section of haproxy.cfg , we put these directives: nbproc 15 cpu - map 1 1 cpu - map 2 2 cpu - map 3 3 cpu - map 4 4 cpu - map 5 5 cpu - map 6 6 cpu - map 7 7 cpu - map 8 8 cpu - map 9 9 cpu - map 10 10 cpu - map 11 11 cpu - map 12 12 cpu - map 13 13 cpu - map 14 14 cpu - map 15 1...