-
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
variable: tidb_pipelined_dml_resource_policy #57352
base: master
Are you sure you want to change the base?
variable: tidb_pipelined_dml_resource_policy #57352
Conversation
Signed-off-by: ekexium <[email protected]>
Signed-off-by: ekexium <[email protected]>
…ned-flush-concurrency
…ned-flush-concurrency
…ned-flush-concurrency
Signed-off-by: ekexium <[email protected]>
Hi @ekexium. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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. |
bc06033
to
b55dfbb
Compare
Signed-off-by: ekexium <[email protected]>
b55dfbb
to
1ba780d
Compare
Signed-off-by: ekexium <[email protected]>
/retest |
@ekexium: 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-sigs/prow repository. |
…ned-flush-concurrency Signed-off-by: ekexium <[email protected]>
…ned-flush-concurrency Signed-off-by: ekexium <[email protected]>
802cb19
to
a0bd213
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #57352 +/- ##
================================================
+ Coverage 73.0087% 73.4310% +0.4223%
================================================
Files 1694 1694
Lines 468366 468505 +139
================================================
+ Hits 341948 344028 +2080
+ Misses 105384 103455 -1929
+ Partials 21034 21022 -12
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…xium/tidb into variable-pipelined-flush-concurrency
Signed-off-by: ekexium <[email protected]>
Signed-off-by: ekexium <[email protected]>
…ned-flush-concurrency
12a4053
to
1814b2b
Compare
Signed-off-by: ekexium <[email protected]>
…ned-flush-concurrency
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
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cfzjywxk The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
newConfig := PipelinedDMLConfig{ | ||
PipelinedFlushConcurrency: vardef.DefaultFlushConcurrency, | ||
PipelinedResolveLockConcurrency: vardef.DefaultResolveConcurrency, | ||
PipelinedWriteThrottleRatio: 0, | ||
} |
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.
newConfig := PipelinedDMLConfig{ | |
PipelinedFlushConcurrency: vardef.DefaultFlushConcurrency, | |
PipelinedResolveLockConcurrency: vardef.DefaultResolveConcurrency, | |
PipelinedWriteThrottleRatio: 0, | |
} | |
newConfig := PipelinedDMLConfig{ | |
PipelinedFlushConcurrency: s.PipelinedFlushConcurrency, | |
PipelinedResolveLockConcurrency: s.PipelinedResolveLockConcurrency, | |
PipelinedWriteThrottleRatio: s.PipelinedWriteThrottleRatio, | |
} |
Shall we keep the previous configuration if the user don't set it?
Unless some variables will be reset when user update another one.
set @@tidb_pipelined_dml_resource_policy = 'custom{concurrency=64}' -- PipelinedFlushConcurrency is 64
set @@tidb_pipelined_dml_resource_policy = 'custom{write_throttle_ratio=0.5}' -- PipelinedFlushConcurrency is reset to 128
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.
It's good to just let the omitted fields be reset to the default value. Unless the actual variable may be different from show variables like "tidb_pipelined_dml_resource_policy"
.
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.
some variables will be reset when user update another one
This is the intended behavior, as we're performing setting operations rather than updates, so the override behavior is appropriate.
What problem does this PR solve?
Issue Number: ref #50215
Problem Summary:
Provide a variable to limit the resource usage of pipelined dml, when it may use too much resource and affect other workloads.
What changed and how does it work?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.