Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch handle region heartbeats to reduce lock contention #1448

Open
overvenus opened this issue Mar 1, 2019 · 0 comments
Open

Batch handle region heartbeats to reduce lock contention #1448

overvenus opened this issue Mar 1, 2019 · 0 comments
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@overvenus
Copy link
Member

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.

@overvenus overvenus added the type/enhancement The issue or PR belongs to an enhancement. label Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant