Where to start First steps track · 15 stages
Linux Labs

HAProxy — load balancer

cheat sheet · Ubuntu 24.04 · HAProxy 2.x https://lab.dimsanych.ru/en/wiki/haproxy/

Cheat sheet

  • haproxy -c -f /etc/haproxy/haproxy.cfg check the config
  • sudo systemctl reload haproxy apply it (graceful)
  • :8404/stats — backend UP/DOWN status
  • frontend bind (ssl crt) → backend: balance + server ... check + option httpchk/forwardfor
  • echo "show stat" | sudo socat stdio /run/haproxy/admin.sock runtime
Loading…