pd
pd copied to clipboard
coordinator: make patrolRegions's subtask concurrently
What problem does this PR solve?
Issue Number: Ref #7706
What is changed and how does it work?
before
after
patrol regions
8 concurrent threads, reducing patrol area time by a factor of 8
before
10w regions
after
20w regions
Check List
Tests
- Unit test
- Integration test
- Manual test (add detailed scripts or steps below)
Code changes
- Has the configuration change
- Has HTTP API interfaces changed (Don't forget to add the declarative for the new API)
- Has persistent data change
Side effects
- Possible performance regression
- Increased code complexity
- Breaking backward compatibility
Related changes
- PR to update
pingcap/docs
/pingcap/docs-cn
: - PR to update
pingcap/tiup
: - Need to cherry-pick to the release branch
Release note
None.
[REVIEW NOTIFICATION]
This pull request has not been approved.
To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer
in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer
in the comment to help you merge this pull request.
The full list of commands accepted by this bot can be found here.
Reviewer can indicate their review by submitting an approval review. Reviewer can cancel approval by submitting a request changes review.
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all