Skip to content

Haproxy

Haproxy

Statistics

sudo hatop -s /var/run/haproxy-master.sock

Log

journalctl -fu haproxy.service

Admin Socket

https://www.claudiokuenzler.com/blog/1240/haproxy-how-to-disable-enable-backend-server-command-line-cli-socket

>>> sudo socat unix-connect:/var/run/haproxy-master.sock stdio
prompt
master> help
The following commands are valid at this level:
  @!<pid>                                 : send a command to the <pid> process
  @<relative pid>                         : send a command to the <relative pid> process
  @master                                 : send a command to the master process
  operator                                : lower the level of the current CLI session to operator
  reload                                  : reload haproxy
  show cli level                          : display the level of the current CLI session
  show cli sockets                        : dump list of cli sockets
  show proc                               : show processes status
  show version                            : show version of the current process
  user                                    : lower the level of the current CLI session to user
  help [<command>]                        : list matching or all commands
  prompt                                  : toggle interactive mode with prompt
  quit                                    : disconnect

Rate Limiting

https://www.haproxy.com/blog/four-examples-of-haproxy-rate-limiting