]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: peers: Give up if we fail to take locks in hot path
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 2 May 2025 11:29:05 +0000 (11:29 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 May 2025 13:27:55 +0000 (15:27 +0200)
commitb3ad7b6371e10cee4e0c23f80191e62d1da7415f
treed6e3a825adb48642bb8b205820b1b649957604c0
parent7a8d1a312258a57624bf7963841bbe27c9588ef5
MEDIUM: peers: Give up if we fail to take locks in hot path

In peer_send_msgs(), give up in order to retry later if we failed at
getting the update read lock.
Similarly, in __process_running_peer_sync(), give up and just reschedule
the task if we failed to get the peer lock. There is an heavy contention
on both those locks, so we could spend a lot of time trying to get them.
This helps getting peers perform better under heavy load.
src/peers.c