MINOR: peers/cli: do not dump the peers dictionaries by default on "show peers"
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Feb 2021 15:56:22 +0000 (16:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Feb 2021 16:00:52 +0000 (17:00 +0100)
commit49962b58d041fe07c92e3156895a381634e11151
treea25f40170d6a63dfa3ddeda9cc3a569982dff919
parent469676423e5ad89086f08029c1988400f4f8fef2
MINOR: peers/cli: do not dump the peers dictionaries by default on "show peers"

The "show peers" output has become huge due to the dictionaries making it
less readable. Now this feature has reached a certain level of maturity
which doesn't warrant to dump it all the time, given that it was essentially
needed by developers. Let's make it optional, and disabled by default, only
when "show peers dict" is requested. The default output reminds about the
command. The output has been divided by 5 :

  $ socat - /tmp/sock1  <<< "show peers dict" | wc -l
  125
  $ socat - /tmp/sock1  <<< "show peers" | wc -l
  26

It could be useful to backport this to recent stable versions.
doc/management.txt
include/haproxy/applet-t.h
src/peers.c