-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
copr: support load_based_replica_read_threshold #40742
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. |
b7e1b37
to
941d230
Compare
62e68b7
to
478fe8c
Compare
478fe8c
to
46a8797
Compare
46a8797
to
c8c3fcc
Compare
c8c3fcc
to
0521651
Compare
store/copr/coprocessor.go
Outdated
@@ -1137,6 +1137,7 @@ func (worker *copIteratorWorker) handleTaskOnce(bo *Backoffer, task *copTask, ch | |||
TaskId: worker.req.TaskID, | |||
RequestSource: task.requestSource.GetRequestSource(), | |||
ResourceGroupName: worker.req.ResourceGroupName, | |||
BusyThresholdMs: uint32(worker.req.StoreBusyThreshold.Milliseconds()), |
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'm worried about how to deal with the batched tasks, if we send them to the replica of the main task, there will be many region miss errors...
0521651
to
a40f2b3
Compare
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
a40f2b3
to
fee5ef4
Compare
/test all |
@sticnarf: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/ok-to-test |
/test all |
/test unit-test |
@cfzjywxk I think we can merge this PR. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 8b7c3d1
|
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 00bbf43
|
/retest |
/build |
/retest |
Signed-off-by: Yilin Chen sticnarf@gmail.com
What problem does this PR solve?
Issue Number: close #41664
Refers to the TiKV RFC tikv/rfcs#105 and support setting threshold for coprocessor requests.
What is changed and how it works?
Add a session and global sysvar
tidb_load_based_replica_read_threshold
.If the estimated waiting duration at TiKV exceeds the threshold, replica read is automatically enabled.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.