]> git.kaiwu.me - haproxy.git/commit
MINOR: mux-h2: permit to moderate the advertised streams limit depending on load
authorWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2026 21:32:05 +0000 (22:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Mar 2026 15:24:31 +0000 (16:24 +0100)
commitc238965b2726710f6f30fd310af1162e4777dd8d
treeadf3bebca9fa28b0c93580fd64793f8c9bdae916
parentb63492e4f4daabdf76c781df65672fa581ff7b27
MINOR: mux-h2: permit to moderate the advertised streams limit depending on load

Global setting tune.h2.fe.max-concurrent-streams now supports an optional
"rq-load" option to pass either a target load, or a keyword among "auto"
and "ignore". These are used to quadratically reduce the advertised streams
limit when the thread's run queue size goes beyong the configured value,
and automatically reduce the load on the process from new connections.
With "auto", instead of taking an explicit value, it uses as a target the
"tune.runqueue-depth" setting (which might be automatic). Tests have shown
that values between 50 and 100 are already very effective at reducing the
loads during attacks from 100000 to around 1500. By default, "ignore"
is in effect, which means that the dynamic tuning is not enabled.
doc/configuration.txt
src/mux_h2.c