]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: log/balance: merge tcp/http algo with log ones
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 15 Nov 2023 10:15:50 +0000 (11:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 18 Nov 2023 10:16:21 +0000 (11:16 +0100)
commitb61147fd2a54d4cfc1053a51e87c91cc306bb7ed
tree404321fc39932057c436dfe5025a5a2f3b3622db
parentf42dfaa214be2d445885234b74ada740d6e3556c
MEDIUM: log/balance: merge tcp/http algo with log ones

"log-balance" directive was recently introduced to configure the
balancing algorithm to use when in a log backend. However, it is
confusing and it causes issues when used in default section.

In this patch, we take another approach: first we remove the
"log-balance" directive, and instead we rely on existing "balance"
directive to configure log load balancing in log backend.

Some algorithms such as roundrobin can be used as-is in a log backend,
and for log-only algorithms, they are implemented as "log-$name" inside
the "backend" directive.

The documentation was updated accordingly.
doc/configuration.txt
include/haproxy/backend-t.h
include/haproxy/backend.h
reg-tests/log/log_backend.vtc
src/backend.c
src/cfgparse-listen.c
src/log.c