MINOR: stats: report server's user-configured weight next to effective weight
authorWilly Tarreau <w@1wt.eu>
Fri, 23 Oct 2020 20:44:30 +0000 (22:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Oct 2020 20:47:30 +0000 (22:47 +0200)
commitbd7151002437af1a034a9fdbb582b3cbef5a78d1
tree33502732d88f42eae64d07b19408b2e3f24d4b1f
parent698097b54c06f552c4c3ae186aa2923f8ae7ffd5
MINOR: stats: report server's user-configured weight next to effective weight

The "weight" column on the stats page is somewhat confusing when using
slowstart becaue it reports the effective weight, without being really
explicit about it. In some situations the user-configured weight is more
relevant (especially with long slowstarts where it's important to know
if the configured weight is correct).

This adds a new uweight stat which reports a server's user-configured
weight, and in a backend it receives the sum of all servers' uweights.
In addition it adds the mention of "effective" in a few descriptions
for the "weight" column (help and doc).

As a result, the list of servers in a backend is now always scanned
when dumping the stats. But this is not a problem given that these
servers are already scanned anyway and for way heavier processing.
doc/management.txt
include/haproxy/backend-t.h
include/haproxy/stats-t.h
src/stats.c