Reference
show servers conn
On this page
Available since
- HAProxy 2.2
- HAProxy Enterprise 2.2r1
Dump the current and idle connections for a backend or backends.
Description Jump to heading
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 Jump to heading
The following example displays current and idle sessions for all backends.
nix
echo -e "show servers conn" | \sudo socat stdio tcp4-connect:127.0.0.1:9999
nix
echo -e "show servers conn" | \sudo socat stdio tcp4-connect:127.0.0.1:9999
outputtext
# 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 1be_api/api2 3/2 127.0.0.1 88 - 5000 0 1 1 0 1 -1 1 1be_static/static1 5/1 127.0.0.1 4331 - 5000 0 1 1 0 0 -1 0 0be_static/static2 5/2 127.0.0.1 4331 - 5000 0 1 1 0 0 -1 0 0
outputtext
# 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 1be_api/api2 3/2 127.0.0.1 88 - 5000 0 1 1 0 1 -1 1 1be_static/static1 5/1 127.0.0.1 4331 - 5000 0 1 1 0 0 -1 0 0be_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
.
nix
echo -e "show servers conn be_api" | \sudo socat stdio tcp4-connect:127.0.0.1:9999
nix
echo -e "show servers conn be_api" | \sudo socat stdio tcp4-connect:127.0.0.1:9999
outputtext
# 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 2be_api/api2 3/2 127.0.0.1 88 - 5000 0 2 2 0 2 -1 2 2
outputtext
# 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 2be_api/api2 3/2 127.0.0.1 88 - 5000 0 2 2 0 2 -1 2 2
See also Jump to heading
Do you have any suggestions on how we can improve the content of this page?