Skip to content

Commit 2fc5bde

Browse files
crepererumalamb
authored andcommitted
fix: reduce lock contention in distributor channels (apache#10026)
* fix: lock contention in distributor channels Reduce lock contention in distributor channels via: - use atomic counters instead of "counter behind mutex" where appropriate - use less state - only lock when needed - move "wake" operation out of lock scopes (they are eventual operations anyways and many wake operations results in "futex wake" operations -- i.e. a syscall -- which you should avoid while holding the lock) * refactor: add more docs and tests for distributor channels --------- Co-authored-by: Andrew Lamb <[email protected]>
1 parent 2f9143b commit 2fc5bde

File tree

1 file changed

+245
-113
lines changed

1 file changed

+245
-113
lines changed

0 commit comments

Comments
 (0)