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

integrate read_ru into tiflash resource control #8097

Merged
merged 30 commits into from
Sep 20, 2023

Conversation

guo-shaoge
Copy link
Contributor

@guo-shaoge guo-shaoge commented Sep 15, 2023

What problem does this PR solve?

Issue Number: close #8098

Problem Summary:

What is changed and how it works?

  1. Use enable_pipeline to control LAC stopped or not. If LAC is stopped, no bg threads will start, and all public member functions of LAC is dummy.
  2. integrate read_ru into LAC, so RCQ will notice the consumption of read_ru, also RU consmpution will report to GAC.
  3. change config name: enable_pipeline -> enable_resource_control; enforce_enable_pipeline -> enforce_enable_resource_control

Check List

Tests

image
  • No code

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

None

Signed-off-by: guo-shaoge <shaoge1994@163.com>
Signed-off-by: guo-shaoge <shaoge1994@163.com>
Signed-off-by: guo-shaoge <shaoge1994@163.com>
@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 15, 2023
@guo-shaoge guo-shaoge changed the title Resource control part 5 integrate read_ru into tiflash resource control Sep 15, 2023
Signed-off-by: guo-shaoge <shaoge1994@163.com>
Signed-off-by: guo-shaoge <shaoge1994@163.com>
Signed-off-by: guo-shaoge <shaoge1994@163.com>
Signed-off-by: guo-shaoge <shaoge1994@163.com>
@SeaRise SeaRise self-requested a review September 19, 2023 03:45
Signed-off-by: guo-shaoge <shaoge1994@163.com>
@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 19, 2023
@SeaRise
Copy link
Contributor

SeaRise commented Sep 19, 2023

/cc @JinheLin

@ti-chi-bot ti-chi-bot bot requested a review from JinheLin September 19, 2023 08:15
LocalAdmissionController::global_instance = std::make_unique<LocalAdmissionController>(
tmt_context.getKVCluster(),
tmt_context.getEtcdClient(),
global_context->getSettingsRef().enable_pipeline);
Copy link
Contributor

Choose a reason for hiding this comment

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

But it is need to restart TiFlash to enable the pipeline.
So there may be enable pipeline but disable resource control

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think no need to support enable pipeline but disable resource control, just as we talked with PM.
PS: should change config name from enable_pipeline to enable_resource_control next pr.

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Sep 20, 2023
@guo-shaoge
Copy link
Contributor Author

/run-all-tests

@guo-shaoge
Copy link
Contributor Author

/run-all-tests

@guo-shaoge
Copy link
Contributor Author

/run-all-tests

Signed-off-by: guo-shaoge <shaoge1994@163.com>
Signed-off-by: guo-shaoge <shaoge1994@163.com>
Signed-off-by: guo-shaoge <shaoge1994@163.com>
@guo-shaoge guo-shaoge requested a review from SeaRise September 20, 2023 09:23
Copy link
Contributor

@SeaRise SeaRise left a comment

Choose a reason for hiding this comment

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

Others LGTM

@ti-chi-bot ti-chi-bot bot added the lgtm label Sep 20, 2023
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Sep 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JinheLin, SeaRise

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 removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 20, 2023
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Sep 20, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-09-20 00:59:27.787818185 +0000 UTC m=+651933.755406236: ☑️ agreed by JinheLin.
  • 2023-09-20 09:27:58.423800524 +0000 UTC m=+682444.391388557: ☑️ agreed by SeaRise.

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Sep 20, 2023

@guo-shaoge: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

trigger some heavy tests which will not run always when PR updated.

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

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 ti-community-infra/tichi repository.

@SeaRise
Copy link
Contributor

SeaRise commented Sep 20, 2023

/hold

@ti-chi-bot ti-chi-bot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 20, 2023
Signed-off-by: guo-shaoge <shaoge1994@163.com>
@guo-shaoge
Copy link
Contributor Author

/run-all-tests

Signed-off-by: guo-shaoge <shaoge1994@163.com>
@guo-shaoge
Copy link
Contributor Author

/run-integration-test

@guo-shaoge guo-shaoge removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 20, 2023
@guo-shaoge
Copy link
Contributor Author

/run-integration-test

@guo-shaoge guo-shaoge closed this Sep 20, 2023
@guo-shaoge guo-shaoge reopened this Sep 20, 2023
@guo-shaoge
Copy link
Contributor Author

/run-integration-test

@guo-shaoge
Copy link
Contributor Author

/merge

@ti-chi-bot ti-chi-bot bot merged commit 0c2286c into pingcap:master Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm 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.

integrate read_ru into tiflash resource control
3 participants