-
Notifications
You must be signed in to change notification settings - Fork 727
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: make history-sample-interval and history-sample-duration configurable #7878
Conversation
…onfigurable Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: lhy1024 <[email protected]>
[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. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #7878 +/- ##
==========================================
+ Coverage 73.39% 73.44% +0.04%
==========================================
Files 434 434
Lines 48035 48067 +32
==========================================
+ Hits 35257 35302 +45
+ Misses 9725 9716 -9
+ Partials 3053 3049 -4
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -147,6 +153,9 @@ type hotRegionSchedulerConfig struct { | |||
ForbidRWType string `json:"forbid-rw-type,omitempty"` | |||
// SplitThresholds is the threshold to split hot region if the first priority flow of on hot region exceeds it. | |||
SplitThresholds float64 `json:"split-thresholds"` | |||
|
|||
HistorySampleDuration typeutil.Duration `json:"history-sample-duration"` |
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.
We already have too many hot scheduler configs. Can we make some of them unexposed?
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.
Of course. I will hidden some config in another pr.
Signed-off-by: lhy1024 <[email protected]>
Signed-off-by: lhy1024 <[email protected]>
if s.sampleDuration == sampleDuration && s.sampleInterval == sampleInterval { | ||
return s | ||
} | ||
return NewStoreHistoryLoads(s.dim, sampleDuration, sampleInterval) |
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.
Do we need to save previous loads?
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 it's not necessary and it will make code complex
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.
ci failed :)
Signed-off-by: lhy1024 <[email protected]>
/merge |
@lhy1024: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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: 5027f78
|
close tikv#7877 Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: Close #7877
What is changed and how does it work?
Check List
Tests
Unit test
Integration test
Manual test (add detailed scripts or steps below)
Has the configuration change
Release note