Reference
show servers conn
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.
Caution
This command should be used for debugging only; it shouldn’t be regularly used for monitoring. The values will change depending on the number and behavior of the load balancer’s threads. There will be as many columns for idle_per_thread[n] are there are n threads. Note that because of the interactions between the threads and the idle connections, calling this command may increment the idle connection counts, and therefore, produce counts that may not be what you expect.
Examples Jump to heading
The following example displays current and idle sessions for all backends.
nix
nix
outputtext
outputtext
The following example displays current and idle sessions for a backend named be_api.
nix
nix
outputtext
outputtext
See also Jump to heading
Do you have any suggestions on how we can improve the content of this page?