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
add ttl config to disable tikv split #5485
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. |
Signed-off-by: D3Hunter <jujj603@gmail.com>
e68d085
to
7b91b9d
Compare
Signed-off-by: D3Hunter <jujj603@gmail.com>
Codecov ReportBase: 75.62% // Head: 75.60% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5485 +/- ##
==========================================
- Coverage 75.62% 75.60% -0.02%
==========================================
Files 320 320
Lines 31622 31640 +18
==========================================
+ Hits 23913 23923 +10
- Misses 5645 5660 +15
+ Partials 2064 2057 -7
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.
The rest LGTM. BTW, Do we need to do some error handling work on the TiKV-side to prevent something like outputting massive split error logs or unnecessary retries?
Signed-off-by: D3Hunter <jujj603@gmail.com>
b98df2b
to
0e599a4
Compare
ptal |
@@ -200,6 +200,12 @@ const ( | |||
hotRegionScheduleLimitKey = "schedule.hot-region-schedule-limit" | |||
schedulerMaxWaitingOperatorKey = "schedule.scheduler-max-waiting-operator" | |||
enableLocationReplacement = "schedule.enable-location-replacement" | |||
// it's related to schedule, but it's not an explicit config | |||
enableTiKVSplitRegion = "schedule.enable-tikv-split-region" |
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 add it to ScheduleConfig?
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.
not necessary for now, it's not a real config(it's always true except during br
operation)
can be deprecated when pd support one-api to pause all schedulers.
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 ok to ScheduleConfig
, in some scenarios, we also need to disable split. such as recovery
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.
198c7cc , it's visible internally for now(so cannot disable it without ttl)
@@ -100,9 +101,6 @@ func TestAskSplit(t *testing.T) { | |||
Region: regions[0].GetMeta(), | |||
} | |||
|
|||
_, err = rc.HandleAskSplit(req) |
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.
Why remove it?
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.
moved to below lines
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.
Signed-off-by: D3Hunter <jujj603@gmail.com>
Signed-off-by: D3Hunter <jujj603@gmail.com>
Signed-off-by: D3Hunter <jujj603@gmail.com>
/rebuild |
Co-authored-by: Ryan Leung <rleungx@gmail.com> Signed-off-by: D3Hunter <jujj603@gmail.com>
e1a1353
to
a8ddbbb
Compare
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
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
/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: e62eec5
|
What problem does this PR solve?
Issue Number: Close #5486
ref: pingcap/tidb#35489
What is changed and how does it work?
Check List
Tests
ErrSchedulerTikvSplitDisabled
Code changes
Side effects
Related changes
pingcap/docs
/pingcap/docs-cn
:pingcap/tiup
:Release note