MINOR: backend: Add sample fetches to get the server's weight
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 10 Jul 2020 14:03:45 +0000 (16:03 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 15 Jul 2020 12:08:14 +0000 (14:08 +0200)
commit1bea86581157f28ce8c92e6550e54a30dc223f09
tree3eda0889bf308e77ca303f4f7966ca1fc5020e5b
parentc55a626217a7e676e1ccfe28621ef664c3cf1aa7
MINOR: backend: Add sample fetches to get the server's weight

The following sample fetches have been added :

 * srv_iweight : returns the initial server's weight
 * srv_uweight : returns the user-visible server's weight
 * srv_weight  : returns the current (or effetctive) server's weight

The requested server must be passed as argument, evnetually preceded by the
backend name. For instance :

  srv_weight(back-http/www1)
doc/configuration.txt
src/backend.c