-
Notifications
You must be signed in to change notification settings - Fork 721
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: split transfer-witness-leader's limit from balance-leader #5873
Conversation
ref tikv#5638 Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
[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. |
ref tikv#5638 Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
Codecov ReportBase: 75.44% // Head: 75.36% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5873 +/- ##
==========================================
- Coverage 75.44% 75.36% -0.09%
==========================================
Files 341 341
Lines 34339 34336 -3
==========================================
- Hits 25908 25876 -32
- Misses 6205 6222 +17
- Partials 2226 2238 +12
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. |
ref tikv#5638 Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
operator.OperatorLimitCounter.WithLabelValues(s.GetType(), operator.OpLeader.String()).Inc() | ||
} | ||
return allowed | ||
return true |
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.
no any limit?
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.
Because when the witness becomes the leader, it cannot provide read and write requests, which will trigger the client to enter backoff to retry. If the transfer cannot be made in time, the client will time out. In addition, the strategy of witness raft log gc has been changed to ensure that there are enough logs, so no snapshots need (and can't) to be generated during the transfer leader process.
/merge |
@rleungx: 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: 78aa274
|
ref #5638
Signed-off-by: Wenbo Zhang ethercflow@gmail.com
What problem does this PR solve?
Issue Number: ref #5638
What is changed and how does it work?
Separate the limit configuration of
transfer-witness-leader
andbalance-leader
. Otherwise, when the witness becomes the leader, the op could not be created in time because the quota was full. The client will return a backoff error:is_witness
.Check List
Tests
Code changes
Side effects
Related changes
pingcap/docs
/pingcap/docs-cn
:pingcap/tiup
:Release note