tikv / tikv/pd

Batch handle region heartbeats to reduce lock contention

Open
#1,448 0 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.