]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: agent-check: Be able to set absolute weight via an agent
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Nov 2024 07:35:22 +0000 (08:35 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 19 Nov 2024 14:29:40 +0000 (15:29 +0100)
commite9bc5937c9f1487aa06ecb93faea62ca1cf718f0
tree56e3da935ced193173650477f5361b2e48a1c510
parent1be7140adefb855bc65722632e9d1d4fa7a90373
MINOR: agent-check: Be able to set absolute weight via an agent

Historically, an agent-check program is only able to set a proportial weight
to the initial server's weight. However, it could be handy to also set an
absolute value. It is the purpose of this patch.

Instead of changing the current way to set a server's weight, a new
agent-check command is introduced. The string "weight:", followed by an
positive interger or a positive interger percentage, can now be used. If the
value ends with the '%' sign, then the new weight will be proportional to
the initially weight of the server. Otherwise, the value is considered as an
absolute weight and must be between 0 and 256.

This patch should fix the issue #360.
doc/configuration.txt
src/tcpcheck.c