-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: use RWMutex in NodeLiveness
When at Mutex profiles for heavily loaded TPC-C clusters we noticed that a lot of time was being spent blocked on a RWMutex held by Replica.leaseGoodToGo which underneath was reading NodeLiveness state in a read-only way. This PR adds a RWMutex to NodeLiveness to eliminate contention. Prior to this change we observed nearly 60% of lock contention on leaseGoodToGo. After we observe closer to 20%. Release note: None
- Loading branch information
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters