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
schedulers: add balance witness scheduler #5763
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
ci failed |
@ethercflow: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
4c5eb07
to
0a352b3
Compare
0a352b3
to
d25aa52
Compare
Codecov ReportBase: 75.47% // Head: 75.55% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5763 +/- ##
==========================================
+ Coverage 75.47% 75.55% +0.07%
==========================================
Files 337 338 +1
Lines 33262 33580 +318
==========================================
+ Hits 25106 25372 +266
- Misses 5980 6024 +44
- Partials 2176 2184 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
maybe, you can devide the big pr into some small pr such as pd-ctl , http , scheduler . |
close tikv#5762 Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
ref tikv#5762 Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
ref tikv#5762 Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
ref tikv#5762 Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
ref tikv#5762 Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
52ddcae
to
f1aa9c0
Compare
Got it, thanks! |
a2258e8
to
f72ed93
Compare
ref tikv#5762 Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
/test build |
/retest |
1 similar comment
/retest |
@@ -191,21 +189,21 @@ func (s *balanceRegionScheduler) Schedule(cluster schedule.Cluster, dryRun bool) | |||
// Priority pick the region that has a pending peer. | |||
// Pending region may mean the disk is overload, remove the pending region firstly. | |||
solver.region = filter.SelectOneRegion(cluster.RandPendingRegions(solver.SourceStoreID(), s.conf.Ranges), collector, | |||
baseRegionFilters...) | |||
append(baseRegionFilters, filter.NewRegionWitnessFilter(solver.SourceStoreID()))...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about add NewRegionWitnessFilter
to base region filters ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it can, because solver.SourceStoreID()
needs to be passed as a parameter, and the solver
is obtained by traversing sourceStores
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly, LGTM
/merge |
@nolouch: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 8b9b751
|
@ethercflow: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
close #5762
Signed-off-by: Wenbo Zhang ethercflow@gmail.com
What problem does this PR solve?
Issue Number: Close #5762
What is changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
pingcap/docs
/pingcap/docs-cn
:Release note