]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli/pools: add sorting capabilities to "show pools"
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Nov 2022 08:34:02 +0000 (09:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Nov 2022 09:14:52 +0000 (10:14 +0100)
commit2fba08faec4bfd43a211aae70dd1de34a02e79a0
treeb114d5acb02a741921ae4c3b1a28dc1b1a5147c0
parent224adf2bfbc45a0b0040915ee5782b6c0bf652ab
MINOR: cli/pools: add sorting capabilities to "show pools"

The "show pools" command is used a lot for debugging but didn't get much
love over the years. This patch brings new capabilities:
  - sorting the output by pool names to ese their finding ("byname").
  - sorting the output by reverse item size to spot the biggest ones("bysize")
  - sorting the output by reverse number of allocated bytes ("byusage")

The last one (byusage) also omits displaying the ones with zero allocation.

In addition, an optional max number of output entries may be passed so as
to dump only the N most relevant ones.
doc/management.txt
include/haproxy/pool.h
src/pool.c