-
Notifications
You must be signed in to change notification settings - Fork 728
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
scheduler: support the hot-region-scheduler to generate multiple operators at the same time #4931
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. |
dd984d3
to
d97bd4f
Compare
Codecov Report
@@ Coverage Diff @@
## master #4931 +/- ##
==========================================
- Coverage 75.87% 75.62% -0.25%
==========================================
Files 311 311
Lines 30830 30909 +79
==========================================
- Hits 23392 23375 -17
- Misses 5450 5527 +77
- Partials 1988 2007 +19
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
ptal @lhy1024 |
@@ -497,8 +537,43 @@ func (bs *balanceSolver) solve() []*operator.Operator { | |||
bs.cur.dstStore = dstStore | |||
bs.calcProgressiveRank() | |||
tryUpdateBestSolution() | |||
|
|||
if searchRevertRegions && (bs.cur.progressiveRank >= -1 && bs.cur.progressiveRank <= 0) && |
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.
if searchRevertRegions && (bs.cur.progressiveRank >= -1 && bs.cur.progressiveRank <= 0) && | |
if searchRevertRegions && (bs.cur.progressiveRank == -1 || bs.cur.progressiveRank == 0) && |
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 think we should support rank1 later.
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.
When the resources are sufficient, the two branches of master
and multi-op
behave similarly, and there is almost no scheduling after stabilization which means the solution can be found (split.qps-threshold
=500) , and there is still scheduling after the solution cannot be found (split.qps-threshold
=3000)
When resources are insufficient, the number of peak scheduling of multi-op
is more
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
server/schedulers/hot_region.go
Outdated
break | ||
} | ||
bs.decorateOperator(currentOp, true, targetLabel, sourceLabel, typ, dim) | ||
ops = append(ops, currentOp) |
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 wonder if the RandBuckets
inwaiting_operator
will be influenced. The GetOperator
may only get first one operator and miss the second one.
…ators at the same time Signed-off-by: HunDunDM <[email protected]>
Signed-off-by: HunDunDM <[email protected]>
Signed-off-by: HunDunDM <[email protected]>
/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: 28204c0
|
…ple operators at the same time (tikv#4931)" This reverts commit 8ab5c16. Signed-off-by: lhy1024 <[email protected]> Conflicts: server/schedulers/hot_region_test.go
ref #4912, ref #4931, ref #5384, ref tikv/tikv#13095 Signed-off-by: lhy1024 <[email protected]>
/run-build-arm64 comment=true |
What problem does this PR solve?
Issue Number: Ref #4949
What is changed and how does it work?
Allows a solution to contain multiple Operators to expand the search set, guaranteeing that a better solution can be found in some cases.
Check List
Tests
Release note