]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: threads: set at least grp_max when mtpg is too small
authorWilly Tarreau <w@1wt.eu>
Thu, 28 May 2026 15:15:57 +0000 (17:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 May 2026 16:49:47 +0000 (18:49 +0200)
commit617df441d60b55e4a908fb8ba6a958a4db850b00
treeb12eb6e19947b37c553089a2b59c1a38d1e14fc3
parent40508247c6b013caf20221bafce628e9f2322887
BUG/MINOR: threads: set at least grp_max when mtpg is too small

When starting, say, 128 threads with max-threads-per-group set to 2
and MAX_TGROUPS set to the default 32, instead of setting the resulting
number of groups to 32 and threads to 64, they're set to 1 and 32
respectively because the condition to raise grp_min is not satisfied.

Let's cut the condition in two parts to also permit to raise it at
least to grp_max.

This should be backported to 3.2.
src/thread.c