-
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
ddl: dynamically adjusting the max write speed of reorganization job #57611
Conversation
Hi @fzzf678. 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. |
/ok-to-test |
/test all |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #57611 +/- ##
================================================
+ Coverage 72.8668% 74.7128% +1.8459%
================================================
Files 1677 1722 +45
Lines 463842 472018 +8176
================================================
+ Hits 337987 352658 +14671
+ Misses 104975 97183 -7792
- Partials 20880 22177 +1297
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -75,8 +75,9 @@ type DDLReorgMeta struct { | |||
// These two variables are used to control the concurrency and batch size of the reorganization process. | |||
// They can be adjusted dynamically through `admin alter ddl jobs` command. | |||
// Note: Don't get or set these two variables directly, use the functions instead. |
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.
Please make these 3 var private
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.
OK, I will try make these vars private in next PR
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.
Rest LGTM
[LGTM Timeline notifier]Timeline:
|
Co-authored-by: CbcWestwolf <1004626265@qq.com>
/cc @lance6716, please help take a look |
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.
rest lgtm
/hold
free to unhold
Co-authored-by: lance6716 <lance6716@gmail.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CbcWestwolf, D3Hunter, lance6716, winoros 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 |
/unhold |
/retest |
2 similar comments
/retest |
/retest |
/retest |
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: ref #57526 #57229
Problem Summary: See #57229
What changed and how does it work?
Supply later
Check List
Tests
Use sysbench prepare table with 50000000 rows, create index and tune the max_write_speed and check the TiKV IO panel import. To see the result clearly, set the initial
@@global.tidb_ddl_reorg_max_write_speed = '5MiB'
Add index in session 1.
Alter the
max_write_speed
in session 2.And check the grafana panel, the config can works
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.