This is an old revision of the document!
BASIC CONCEPTS
External Link
/etc/haproxy/haproxy.cfg
We define acl and backends. Then acl define what backend we use.
use_backend blog-backend if acl_url_blog
OPERATION:
Restart:
/etc/rc.d/init.d/haproxy restart
MONITORING
From the cli, this command gives us a csv, dump in Calc. Check max connections and current connections.
echo "show info;show stat" | nc -U /var/lib/haproxy/stats # Also | grep DOWN to see what is not working atm
External Link There's GUI available as well as interacetive commands accessible with:
nc -U /var/run/haproxy.sock
Also non-interactive commands for automated based operations.
SPECIAL FEATURES Enable slow start: https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#5.2-slowstart