HAProxy Enterprise Documentation 2.3r1

show servers conn

Dump the current and idle connections for a backend or backends.

Description

Use the show servers conn command to display the current and idle connections state of the servers belonging to all backends.

Use the show servers conn <backend> to display the current and idle connections state of the servers belonging to the specified backend.

Examples

The following example displays current and idle sessions for all backends.

$ echo -e "show servers conn" | socat tcp-connect:127.0.0.1:9999 -
# bkname/svname bkid/svid addr port - purge_delay used_cur used_max need_est unsafe_nb safe_nb idle_lim idle_cur idle_per_thr[1]
be_api/api1 3/1 127.0.0.1 88 - 5000 0 1 1 0 1 -1 1 1
be_api/api2 3/2 127.0.0.1 88 - 5000 0 1 1 0 1 -1 1 1
be_static/static1 5/1 127.0.0.1 4331 - 5000 0 1 1 0 0 -1 0 0
be_static/static2 5/2 127.0.0.1 4331 - 5000 0 1 1 0 0 -1 0 0

The following example displays current and idle sessions for a backend named be_api.

$ echo -e "show servers con be_api" | socat tcp-connect:127.0.0.1:9999 -
# bkname/svname bkid/svid addr port - purge_delay used_cur used_max need_est unsafe_nb safe_nb idle_lim idle_cur idle_per_thr[1]
be_api/api1 3/1 127.0.0.1 88 - 5000 0 1 2 0 2 -1 2 2
be_api/api2 3/2 127.0.0.1 88 - 5000 0 2 2 0 2 -1 2 2

See also


Next up

Lua scripts