HAPROXY Troubleshooting Reference Card v1.0
HAPROXY Troubleshooting Reference Card v1.0
HAProxy® Troubleshooting Reference Card req_rate [F] HTTP requests per second over last elapsed second add map <map> <key> <value>
2020-03-02 - Use under Creative Commons License (CC BY-SA) req_rate_max [F] max number of HTTP requests per second observed del acl <acl> [ <key> | #<ref> ]
For version 2.2-dev3 req_tot [FB] total number of HTTP requests received del map <map> [ <key> | #<ref> ]
reuse [BS] cumulative number of connection reuses set maxconn frontend <frontend> <value>
rtime [BS] average response time in ms over the 1024 last requests set maxconn server <backend>/<server> <value>
Stats field names (Management Guide §9) rtime_max [BS] the maximum observed response time in ms (0 for TCP) set maxconn global <maxconn>
show stat typed desc scur [LFBS] current sessions set rate-limit connections global <value>
act [BS] number of active servers (backend), server is active (server) sid [LS] server id (unique inside a proxy) set rate-limit http-compression global <value>
addr [LS] address:port or "unix". slim [LFBS] configured session limit set rate-limit sessions global <value>
agent_code [S] numeric code reported by agent if any (unused for now) smax [LFBS] max sessions set rate-limit ssl-sessions global <value>
agent_desc [S] short human-readable description of agent_status src_ilim [S] limit on the number of available idle connections set server <backend>/<server> addr {<ip4>|<ipv6>} [port <port>]
agent_duration [S] time in ms taken to finish last check srv_abrt [BS] number of data transfers aborted by the server set server <backend>/<server> agent [ up | down ]
agent_fall [S] agent's "fall" parameter, normally 1 srv_icur [S] current number of idle connections available for reuse set server <backend>/<server> agent-addr <addr>
agent_health [S] agent's health parameter, between 0 and rise+fall-1 status [LFBS] status (UP/DOWN/NOLB/MAINT/MAINT) set server <backend>/<server> agent-send <value>
agent_rise [S] agent's "rise" parameter, normally 1 stot [LFBS] cumulative number of sessions set server <backend>/<server> health [ up | stopping | down ]
agent_status [S] status of last agent check svname [LFBS] service name set server <backend>/<server> check-port <port>
algo [B] load balancing algorithm throttle [S] current throttle percentage for the active server set server <backend>/</server> state [ready|drain|maint]
bck [BS] number of backup servers (B), server is backup (S) tracked [S] id of proxy/server if tracking is enabled set server <backend>/<server> weight <weight>[%]
bin [LFBS] bytes in ttime [S] avg total session time in ms over the 1024 last requests set server <backend>/<server> fqdn <FQDN>
bout [LFBS] bytes out ttime_max [BS] the maximum observed total session time in ms set weight <backend>/<server> <weight>[%]
btot [BS] total number of times a server was selected type [LFBS] 0=frontend, 1=backend, 2=server, 3=socket/listener set ssl ocsp-response <response|payload>
cache_hits [FB] cumulative number of cache hits weight [BS] total weight (backend), server weight (server) set ssl tls-key <id> <tlskey>
cache_lookups [LB] cumulative number of cache lookups wredis [BS] number of times a request was redispatched to another server
check_code [S] layer5-7 code, if available wretr [BS] number of times a connection to a server was retried clear counters [all]
check_desc [S] short human-readable description of check_status wrew [LFBS] cumulative number of failed header rewriting warnings clear acl <acl>
check_duration [S] time in ms took to finish last health check clear map <map>
check_fall [S] server's "fall" parameter used by checks clear table <table> [[data.<type> <operator> <value>]|[key <key>]]
check_health [S] server's health check value between 0 and rise+fall-1 CLI (Management Guide §9.3) enable|disable agent <backend>/<server>
check_rise [S] server's "rise" parameter used by checks ex: global.stats socket /var/run/haproxy.sock mode 600 level admin enable|disable dynamic-cookie-backend <backend>
check_status [S] status of last health check $ socat /var/run/haproxy.sock readline enable|disable frontend <frontend>
chkdown [BS] number of UP->DOWN transitions $ nc -U /var/run/haproxy.sock enable|disable health <backend>/<frontend>
chkfail [BS] number of failed checks <type> : IPv4, IPv6, integer, string enable|disable server <backend>/<server>
cli_abrt [BS] number of data transfers aborted by the client <operator> : eq, ne, le, ge, lt, gt set dynamic-cookie-key backend <backend> <value>
comp_byp [FB] bytes that bypassed the HTTP compressor <trace-level> : user, proto, state, data, developer set map <map> [ <key> | #<ref> ] <value>
comp_in [FB] number of HTTP response bytes fed to the compressor <trace-criterion> : backend, connection, frontend, listener, set severity-output [none|number|string]
comp_out [FB] number of HTTP response bytes emitted by the compressor nothing, server, session, thread set table <table> key <key> [data.<data_type> <value>]*
comp_rsp [BS] number of HTTP responses that were compressed help shutdown frontend <frontend>
conn_rate [F] number of connections over the last elapsed second prompt shutdown session <id>
conn_rate_max [F] highest known conn_rate quit shutdown sessions server <backend>/<server>
conn_tot [F] cumulative number of connections expert-mode [on|off]
connect [BS] cumulative number of connection establishment attempts operator debug dev <command> [args]*
cookie [BS] server's cookie value or backend's cookie name user set profiling { tasks } { auto | on | off }
ctime [BS] average connect time in ms over the 1024 last requests set timeout_cli <delay> trace
ctime_max [BS] the maximum observed connect time in ms trace 0
dcon [LF] requests denied by "tcp-request connection" rules show acl [<acl>] trace <source> event [ [+|-]!]<name> ]
downtime [BS] total downtime in seconds show backend trace <source> level [<trace-level>]
dreq [LFBS] requests denied because of security concerns show activity trace <source> lock [<trace-criterion>]
dresp [LFBS] responses denied because of security concerns show cli sockets trace <source> { pause | start | stop } [ [+|-]!]event ]
dses [LF] requests denied by "tcp-request session" rules show cache trace <source> sink [<sink>]
econ [BS] errors while trying to connect to a backend server show env [<name>] trace <source> verbosity [<level>]
ereq [LF] request errors show errors [<iid>|<proxy>] [request|response]
eresp [BS] response errors. srv_abrt will be counted here also show events [<sink>] [-w] [-n]
hanafail [S] failed health checks details show fd [<fd>] Master CLI (Management Guide §9.4)
hrsp_other [FBS] http responses with other codes (protocol error) show info [typed|json] [desc] prompt
hrsp_Yxx [FBS] http responses with Yxx code (Y: [1, 2, 3, 4, 5]) show map [<map>] show proc
iid [LFBS] unique proxy id show peers [<peers>] reload
intercepted [FB] cum. number of intercepted requests (monitor, stats) show pools @ID | @!PID switch to process cli
last_agt [BS] last agent check contents or textual error show profiling @ID | @!PID command execute command to @ID or @!PID
last_chk [S] last health check contents or textual error show servers state [<backend>]
lastchg [BS] number of seconds since the last UP<->DOWN transition show sess [<id>]
lastsess [S] seconds since last session assigned to server/backend show stat [{<iid>|<proxy>} <type> <sid] [typed|json] [desc]
mode [LFBS] proxy mode (tcp, http, health, unknown) show schema json
pid [LFBS] process id (0 for first instance, 1 for second, ...) show resolvers [<resolvers>]
pxname [LFBS] proxy name show table [<name> {[data.<type> <operator> <value>]|[key <key>]}]
qcur [BS] current queued requests show threads
qlimit [S] configured maxqueue for the server show tls-keys [<id>|*]
qmax [BS] max value of qcur show trace [<source>]
qtime [BS] average queue time in ms over the 1024 last requests get map <map> <value>
qtime_max [BS] the maximum observed queue time in ms get acl <acl> <value>
rate [FBS] number of sessions per second over last elapsed second get weight <backend>/<server>
rate_lim [F] configured limit on new sessions per second