]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-tables: Limit the number of old entries we remove
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 2 May 2025 12:05:37 +0000 (12:05 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 May 2025 13:27:55 +0000 (15:27 +0200)
commitd2d4c3eb6566145d30eb38dc96b2b79d3f1db8fc
tree6adfaad34f376e11c4eabf3519c0b847b673bdd2
parent388539faa35cd11019d81619cce86ac34a554d33
MEDIUM: stick-tables: Limit the number of old entries we remove

Limit the number of old entries we remove in one call of
stktable_trash_oldest(), as we do so while holding the heavily contended
update write lock, so we'd rather not hold it for too long.
This helps getting stick tables perform better under heavy load.
src/stick_table.c