Simple sysctl tunings for HAProxy

1 min read time
Simple sysctl tunings for HAProxy

If you’re running a high-performance HAProxy setup, there are many tweaks and settings that you can benefit from. Some of these can be complex, but there are many that can quite easily increase your performance. We’ll give you some tips here to get that extra bit of performance you need. 

Sysctl is a program used to tweak kernel settings on your OS. This allows you to optimize the way your kernel handles networking.

Snapt Aria’s UI can assist with these types of optimizations, but you can also configure them directly via CLI by adding these to  /etc/sysctl.conf (on Linux) —

net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_max_orphans = 262144
net.ipv4.ip_local_port_range = 1024 65023
net.ipv4.tcp_fin_timeout = 30
net.core.netdev_max_backlog = 10000
net.ipv4.tcp_syncookies = 1
net.ipv4.conf.all.rp_filter = 1
net.core.somaxconn = 60000
net.ipv4.tcp_max_syn_backlog = 60000
net.ipv4.tcp_synack_retries = 3


If any give you an error it might be because of a kernel version, etc; just remove the relevant line. You need to reboot or run “sysctl -p” to reload this.


New call-to-action

Snapt Aria enhances HAProxy with a full GUI and ADC

We provide a full GUI for configuration and management of HAProxy, as well as reporting, alerts, APIs, graphing, and more. You can set up a brand new HAProxy installation or integrate it with your existing one.


The wide array of Snapt additions elevates HAProxy to an entirely new level. Snapt’s exceptional support and great HAProxy interface, means HAProxy can now be your ready-to-use enterprise solution.

Snapt's HAProxy load balancer solution includes the full Snapt Aria ADC. Use powerful caching, web acceleration, and application firewalling with your HAProxy.


HubSpot Video


Ready to get started? Create your HAProxy GUI for free.

Download Trial

Subscribe via Email

Get daily blog updates straight to your email inbox.

You have successfully been subscribed!