DOC: management: edit the "show proc" example to show the current output

The "show proc" output changed and it's time to update the example.

The output does not display the relative PID anymore since the nbproc
keyword disappeared, and it displays the number of failed reloads since
the last successful one.
This commit is contained in:
William Lallemand 2021-11-10 15:42:17 +01:00
parent 5f47b2e280
commit a68a00fe28
1 changed files with 8 additions and 6 deletions

View File

@ -3565,19 +3565,21 @@ Example:
# haproxy -Ws -S /tmp/master-socket,uid,1000,gid,1000,mode,600 -f test1.cfg # haproxy -Ws -S /tmp/master-socket,uid,1000,gid,1000,mode,600 -f test1.cfg
# haproxy -W -S /tmp/master-socket,level,user -f test1.cfg # haproxy -W -S /tmp/master-socket,level,user -f test1.cfg
The master CLI introduces a new 'show proc' command to surpervise the The master CLI introduces a 'show proc' command to surpervise the
processes: processes:
Example: Example:
$ echo 'show proc' | socat /var/run/haproxy-master.sock - $ echo 'show proc' | socat /var/run/haproxy-master.sock -
#<PID> <type> <relative PID> <reloads> <uptime> <version> #<PID> <type> <reloads> <uptime> <version>
1162 master 0 5 0d00h02m07s 2.0-dev7-0124c9-7 1162 master 5 [failed: 0] 0d00h02m07s 2.5-dev13
# workers # workers
1271 worker 1 0 0d00h00m00s 2.0-dev7-0124c9-7 1271 worker 1 0d00h00m00s 2.5-dev13
1272 worker 2 0 0d00h00m00s 2.0-dev7-0124c9-7
# old workers # old workers
1233 worker [was: 1] 3 0d00h00m43s 2.0-dev3-6019f6-289 1233 worker 3 0d00h00m43s 2.0-dev3-6019f6-289
# programs
1244 foo 0 0d00h00m00s -
1255 bar 0 0d00h00m00s -
In this example, the master has been reloaded 5 times but one of the old In this example, the master has been reloaded 5 times but one of the old