Skip to main content
50% off all plans, limited time. Starting at $2.48/mo
HAProxy

HAProxy

HAProxy is a high-performance TCP and HTTP load balancer. Battle-tested for million-RPS workloads and used by GitHub, Reddit, Stack Overflow, and Twitter. The reference load balancer when NGINX or AWS ALB isn't fast or feature-rich enough. Free Community edition, commercial Enterprise tier.

At a glance

6.6k

GitHub stars

94

Page views

316

Active installs

Version Latest OS Ubuntu Server 24.04 LTS Min RAM 1 GB IP IPV4,IPV6

Active installs is sample data (staging preview); real metric wires in before launch.

Version Check

haproxy -v

Important Files and Directories

  • Config file: /etc/haproxy/haproxy.cfg
  • Binary: /usr/sbin/haproxy

Service Management

Start HAProxy:

systemctl start haproxy

Restart after config changes:

systemctl restart haproxy

Check status:

systemctl status haproxy

View live logs:

journalctl -u haproxy -f

Configuration

Edit config:

vim /etc/haproxy/haproxy.cfg

Validate config:

haproxy -c -f /etc/haproxy/haproxy.cfg

Restart after changes:

systemctl restart haproxy

Notes

  • HAProxy is installed but NOT automatically configured
  • Ensure /etc/haproxy/haproxy.cfg is properly set before use
  • Restart is required after every change
  • Service will not function correctly with default empty config

More in DevOps Tools

Related apps.

Deploy HAProxy now. From $2.48/mo.