Batch handle region heartbeats to reduce lock contention
Open
type/enhancement
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 783
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 36
Description
PD stores all regions info in a globle RW lock. For every region heartbeat we have to acquire the lock to check whether region info is changed. There may be severe lock contention if region count cxceeds a certain threshold.
To resovle this problem we can batch handle region heatbeats.
Contributor guide
Assessment
This issue has not been assessed yet.