You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
0 commit comments