talira

HAProxy

Problems HAProxy solves

All 25 problems from HAProxy's listing.

  • spread incoming HTTP requests across a pool of web servers and skip the ones failing health checks
  • load balance raw TCP connections to a database or mail server cluster
  • terminate TLS for thousands of domains with SNI on one load balancer
  • keep each user on the same backend server for their whole session
  • share stickiness and rate counters between two load balancers running active-active
  • track request rates per IP and slow down or block clients abusing my API
  • route requests to different backend pools by path, Host header or cookie
  • serve HTTP, HTTPS and SSH on the same port and route each connection by protocol
  • drain a backend server for maintenance or change its weight without reloading the proxy
  • add or change backend pools at runtime without a reload
  • export load balancer statistics to Prometheus and graph them in Grafana
  • shield fragile backend servers from SYN floods and malformed HTTP requests
  • load balance PHP-FPM application servers over FastCGI without another web server in between
  • get Let's Encrypt certificates directly in the load balancer with ACME
  • add custom routing and authentication logic to my load balancer with scripts
  • an enterprise load balancer we run ourselves with a WAF, bot management and vendor support
  • spread TCP and HTTP traffic across a pool of servers and take dead ones out automatically
  • a load balancer in front of Postgres or MySQL replicas that checks which node is healthy
  • keep a user on the same backend server for their whole session
  • terminate TLS for many sites and pass plain HTTP to the apps
  • route requests to backends by host, path or header rules
  • drain a server for maintenance without dropping in-flight connections
  • change backend weights and server states at runtime without a reload
  • protect backends with connection limits, queues and rate limiting
  • a load balancer with long-term support releases we can run for years

Back to HAProxy