]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-tables: Limit the number of entries we expire
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 2 May 2025 12:07:53 +0000 (12:07 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 May 2025 13:27:55 +0000 (15:27 +0200)
commit994cc58576f52d23c830a8acb6ab81a2a3e28477
tree6ef2f1832d91823790373898fa07fb4fd5eb1ad4
parentd2d4c3eb6566145d30eb38dc96b2b79d3f1db8fc
MEDIUM: stick-tables: Limit the number of entries we expire

In process_table_expire(), limit the number of entries we remove in one
call, and just reschedule the task if there's more to do. Removing
entries require to use the heavily contended update write lock, and we
don't want to hold it for too long.
This helps getting stick tables perform better under heavy load.
src/stick_table.c