Haproxy Tips

  • To check configuration file

    $ haproxy -f /path/to/haproxy.cfg -c

    $ echo show info | socat stdio /var/run/haproxy.stat | grep -i -e conn -e max -e ssl

  • When using keepalived for non local bind use this.

    $ nano /etc/systemctl.conf

    Add this in the end of the file

    Net.ipv4.ip_nonlocal_bind=1

    and the run

    $ sysctl -p