Logo HAProxy

Networking & VPN

HAProxy

Free load balancer — distribute the load and scale your applications.

About HAProxy

HAProxy is the reference open-source load balancer: it distributes incoming traffic across multiple application servers, checks their health (health checks) and switches over automatically in case of failure (failover). Renowned for its performance and reliability, it powers some of the largest platforms on the web.

On your ServOrbit VPS instances, HAProxy lets you scale horizontally: add servers behind the load balancer to absorb the load, with no software cost — it's entirely free.

What gets installed

Ready when the VPS starts

Compatible OS
Ubuntu 24.04
Application
HAProxy
Tech stack
HAProxy
Minimum RAM
512 MB
Minimum CPU
1 vCPU
Default port
80/443
Access
root over SSH

Key features

  • L4 (TCP) and L7 (HTTP) load balancing
  • Health checks and automatic failover
  • SSL/TLS termination
  • Load-balancing algorithms (round-robin, leastconn, hash…)
  • Built-in statistics and administration page
  • Event-driven model — a single process, not one thread per connection

When to use this solution?

Scale horizontally

Distribute traffic across multiple application VPS instances to handle rising load.

High availability

Fail over automatically to a healthy server if one goes down.

Database load balancing

Balance reads across multiple database replicas.

Guide

Deploy HAProxy on your VPS

  1. Install HAProxy

    apt install -y haproxy. The service starts via systemd.

  2. Declare the backends

    In /etc/haproxy/haproxy.cfg, define a frontend (listening port) and a backend listing your application servers and their health checks.

  3. Enable the stats

    Add a stats section to view the state of the backends, then systemctl reload haproxy.

Frequently asked questions

Questions about HAProxy

← Back to Networking & VPNAll applications
Yes, HAProxy Community Edition is open source and free, with no limit on traffic or backends.

Embed the deploy button

Maintaining a project that uses HAProxy? This button lets your readers deploy it on a VPS in one click, without reading Docker documentation.

Deploy HAProxy on ServOrbit
Markdown
[![Deploy HAProxy on ServOrbit](https://servorbit.com/brand/deploy/button.svg)](https://servorbit.com/vps-cloud?template=haproxy&utm_source=deploy-badge&utm_medium=referral&utm_campaign=haproxy)
HTML
<a href="https://servorbit.com/vps-cloud?template=haproxy&utm_source=deploy-badge&utm_medium=referral&utm_campaign=haproxy"><img src="https://servorbit.com/brand/deploy/button.svg" alt="Deploy HAProxy on ServOrbit" height="40"></a>

The button points to a VPS order with the template preselected. The image is served from servorbit.com — nothing to host on your side.

Need help?

Browse our help center and FAQ, or reach our team — callback, WhatsApp or email.

Message us on WhatsAppopens in a new tab