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

Reduce unavailable time caused by leader election #1658

Open
disksing opened this issue Jul 31, 2019 · 0 comments
Open

Reduce unavailable time caused by leader election #1658

disksing opened this issue Jul 31, 2019 · 0 comments
Labels
status/discussion-wanted The issue needs to be discussed. type/enhancement The issue or PR belongs to an enhancement.

Comments

@disksing
Copy link
Contributor

Currently, when a PD becomes leader, it needs to load all regions meta from storage. During the process, it cannot provide service such as TSO. There are some possible optimizations for this problem.

  • Start service before loading regions.
    Clients have region cache, sometimes they don't really need GetRegion to work. So start the TSO service earlier can help recover some transactions.

  • Maintain region tree in follower's memory too.
    Now with the region-storage feature, followers constantly sync regions with the leader. We can maintain the region tree in all followers, then it won't have to load from storage when becomes leader.

@disksing disksing added type/enhancement The issue or PR belongs to an enhancement. status/discussion-wanted The issue needs to be discussed. labels Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/discussion-wanted The issue needs to be discussed. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant