-
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
kv: reduce the distsql concurrency if the runaway query action is COOLDOWN #55310
Conversation
1a8f17d
to
b68a63a
Compare
Now the effect of COOLDOWN in runaway query is not very significant, and also we meet the big query problem need to reduce the concurrency when executing to smoothly consume the RU, so combine the requirement. optimize the COOLDOWN action by reduce the distsql concurrency. Signed-off-by: nolouch <[email protected]>
b68a63a
to
942fc98
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #55310 +/- ##
================================================
+ Coverage 72.9101% 75.6299% +2.7197%
================================================
Files 1576 1582 +6
Lines 440475 447746 +7271
================================================
+ Hits 321151 338630 +17479
+ Misses 99538 88426 -11112
- Partials 19786 20690 +904
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest-required |
pkg/store/copr/coprocessor.go
Outdated
@@ -219,6 +220,15 @@ func (c *CopClient) BuildCopIterator(ctx context.Context, req *kv.Request, vars | |||
it.concurrency = 1 | |||
} | |||
|
|||
// if the request is triggered cool down by the runaway checker, we need to adjust the concurrency, let the sql run slowly.\ |
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 the request is triggered cool down by the runaway checker, we need to adjust the concurrency, let the sql run slowly.\ | |
// if the request is triggered cool down by the runaway checker, we need to adjust the concurrency, let the sql run slowly. |
@HuSharp: adding LGTM is restricted to approvers and reviewers in OWNERS files. 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. |
Signed-off-by: nolouch <[email protected]>
/retest-required |
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.
Signed-off-by: nolouch <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: glorv, HuSharp, JmPotato, tangenta The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test unit-test |
@HuSharp: The specified target(s) for
Use 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-sigs/prow repository. |
What problem does this PR solve?
Issue Number: ref #55029
Problem Summary:
Now the effect of
COOLDOWN
in runaway query is not very significant, and also we meet the big query problem need to reduce the concurrency when executing to smoothly consume the RU, so combine the requirements. optimize theCOOLDOWN
action by reduce the distsql concurrency.What changed and how does it work?
Check List
Tests
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.