HAProxy Enterprise Documentation 2.5r1
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" | \
sudo socat stdio unix-connect:/var/run/hapee-2.5/hapee-lb.sock
# 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 conn be_api" | \
sudo socat stdio unix-connect:/var/run/hapee-2.5/hapee-lb.sock
# 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
show servers state