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

server(ticdc): use TiDB gcTuner in a more reasonable way #9786

Merged
merged 6 commits into from
Sep 22, 2023

Conversation

sdojjy
Copy link
Member

@sdojjy sdojjy commented Sep 21, 2023

What problem does this PR solve?

Issue Number: close #9762

What is changed and how it works?

  1. disable gc tunner by default
  2. if server memory size is greater than 512G, disable gc tuner

Check List

Tests

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

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

Release note

disable gc tuner by default

@ti-chi-bot ti-chi-bot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 21, 2023
@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 21, 2023
@sdojjy
Copy link
Member Author

sdojjy commented Sep 21, 2023

/retest-required

1 similar comment
@sdojjy
Copy link
Member Author

sdojjy commented Sep 22, 2023

/retest-required

if conf.GcTunerMemoryThreshold > maxGcTunerMemory {
// If total memory is larger than 512GB, we will not set memory limit.
// Because the memory limit is not accurate, and it is not necessary to set memory limit.
log.Info("total memory is larger than 512GB, skip setting memory limit",
Copy link
Contributor

Choose a reason for hiding this comment

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

log.warn

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 22, 2023
@sdojjy sdojjy removed the needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. label Sep 22, 2023
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Sep 22, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: asddongmen, nongfushanquan

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 added lgtm approved and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 22, 2023
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Sep 22, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-09-22 01:27:00.019350077 +0000 UTC m=+826385.986938110: ☑️ agreed by nongfushanquan.
  • 2023-09-22 06:54:11.864263326 +0000 UTC m=+846017.831851376: ☑️ agreed by asddongmen.

@asddongmen
Copy link
Contributor

/retest

@ti-chi-bot ti-chi-bot bot merged commit 7e33879 into pingcap:master Sep 22, 2023
13 checks passed
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-7.1: #9795.

@sdojjy sdojjy deleted the disable-gc-tuner-by-default branch September 27, 2023 07:03
@sdojjy sdojjy added the needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. label Oct 30, 2023
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-6.5: #9968.

ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Oct 30, 2023
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm needs-cherry-pick-release-6.5 Should cherry pick this PR to release-6.5 branch. needs-cherry-pick-release-7.1 Should cherry pick this PR to release-7.1 branch. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TiCDC should use TiDB gcTuner in a more reasonable way.
4 participants