Skip to content
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

disttask,ddl: use subtask concurrency #52286

Merged
merged 5 commits into from
Apr 2, 2024

Conversation

lance6716
Copy link
Contributor

@lance6716 lance6716 commented Apr 1, 2024

What problem does this PR solve?

Issue Number: ref #49008

Problem Summary:

What changed and how does it work?

DDL and IMPORT INTO use SubtaskBase.Concurrency. The downside is we cann't dynamically adjust the concurrency using tidb_ddl_reorg_worker_cnt for now.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test

    should be covered by existing test

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 1, 2024
Copy link

tiprow bot commented Apr 1, 2024

Hi @lance6716. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

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/test-infra repository.

@lance6716 lance6716 requested review from tangenta and D3Hunter April 1, 2024 08:25
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
@lance6716
Copy link
Contributor Author

/ok-to-test

@ti-chi-bot ti-chi-bot bot added the ok-to-test Indicates a PR is ready to be tested. label Apr 1, 2024
Copy link

codecov bot commented Apr 1, 2024

Codecov Report

Merging #52286 (2f1daeb) into master (f2ea18c) will increase coverage by 0.4591%.
Report is 9 commits behind head on master.
The diff coverage is 82.4561%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #52286        +/-   ##
================================================
+ Coverage   72.8831%   73.3423%   +0.4591%     
================================================
  Files          1468       1468                
  Lines        359618     434126     +74508     
================================================
+ Hits         262101     318398     +56297     
- Misses        78280      95831     +17551     
- Partials      19237      19897       +660     
Flag Coverage Δ
integration 48.8787% <82.4561%> (?)
unit 70.9564% <17.5438%> (-1.8330%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 53.9957% <ø> (-2.3014%) ⬇️
parser ∅ <ø> (∅)
br 41.3109% <ø> (+7.0823%) ⬆️

Signed-off-by: lance6716 <[email protected]>
@@ -1309,6 +1309,7 @@ func (e *LoadDataController) getBackendWorkerConcurrency() int {
// IO intensive, so CPU usage is below ThreadCnt in our tests.
// The real concurrency used is adjusted in external engine later.
// when using local sort, use the default value as lightning.
// TODO(lance6716): can we remove this assignment branch?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i remember you have a pr to reduce range-concurrency of add-index, and it has no perf regression, maybe change it to e.ThreadCnt * 2 always here.

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Apr 2, 2024
Signed-off-by: lance6716 <[email protected]>
@ti-chi-bot ti-chi-bot bot added approved lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Apr 2, 2024
Copy link

ti-chi-bot bot commented Apr 2, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-04-02 02:21:13.761824268 +0000 UTC m=+324135.289364809: ☑️ agreed by D3Hunter.
  • 2024-04-02 02:57:34.23372482 +0000 UTC m=+326315.761265359: ☑️ agreed by zimulala.

Copy link

ti-chi-bot bot commented Apr 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: D3Hunter, tangenta, zimulala

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot merged commit 76abd8b into pingcap:master Apr 2, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test Indicates a PR is ready to be tested. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants