-
Notifications
You must be signed in to change notification settings - Fork 714
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
simulator: remove balance-region-scheduler
util all stores put the regions to pd
#5252
Conversation
Signed-off-by: bufferflies <1045931706@qq.com>
Signed-off-by: bufferflies <1045931706@qq.com>
[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 The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
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.
There are typos in the title, which should be "simulator: remove balance-region-scheduler until all stores put the regions to pd"
balance-region-scheduler
util all store put the regions to pdbalance-region-scheduler
until all stores put the regions to pd
Signed-off-by: bufferflies <1045931706@qq.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5252 +/- ##
==========================================
+ Coverage 75.75% 75.88% +0.12%
==========================================
Files 312 312
Lines 30962 30963 +1
==========================================
+ Hits 23456 23496 +40
+ Misses 5498 5479 -19
+ Partials 2008 1988 -20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
f27d782
to
9b9f1fa
Compare
Signed-off-by: bufferflies <1045931706@qq.com>
Signed-off-by: bufferflies <1045931706@qq.com>
Signed-off-by: bufferflies <1045931706@qq.com>
balance-region-scheduler
until all stores put the regions to pdbalance-region-scheduler
util all stores put the regions to pd
Signed-off-by: bufferflies <1045931706@qq.com>
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.
It's better to pause balance-region-scheduler
, hot-region-scheduler
and balance-leader-scheduler
together?
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.
rest LGTM
@@ -106,6 +110,12 @@ func (d *Driver) Prepare() error { | |||
func (d *Driver) Tick() { | |||
d.tickCount++ | |||
d.raftEngine.stepRegions() | |||
// simulator don't need any schedulers util all stores send their heartbeat. | |||
if d.tickCount <= 1 { | |||
d.client.RemoveScheduler(balanceRegionScheduler) |
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.
also need to remove balance leader scheduler?
cc @bufferflies |
@bufferflies: 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. |
any update? |
Signed-off-by: bufferflies 1045931706@qq.com
What problem does this PR solve?
Issue Number: Close #5251,#5290
What is changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
Release note