Skip to content

backup: adjust concurrency description after v8.2 #20963

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

Merged
merged 6 commits into from
May 21, 2025
Merged

Conversation

3pointer
Copy link
Contributor

@3pointer 3pointer commented May 16, 2025

First-time contributors' checklist

What is changed, added or deleted? (Required)

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.4 (TiDB 8.4 versions)
  • v8.3 (TiDB 8.3 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

@ti-chi-bot ti-chi-bot bot added missing-translation-status This PR does not have translation status info. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 16, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Hello @3pointer, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

Hello! Gemini here, providing a summary of this pull request. This PR focuses on updating the documentation for the br (Backup & Restore) tool, specifically clarifying the roles and recommended usage of the --ratelimit and --concurrency parameters when controlling backup performance and impact on the cluster. It removes the --ratelimit parameter from several example commands and revises the guidance on performance tuning, emphasizing the tikv.backup.num-threads configuration as the primary method.

Highlights

  • Documentation Update: Updates the documentation for the br tool, specifically related to backup performance tuning parameters.
  • Clarified Parameter Usage: Provides clearer explanations for the --ratelimit and --concurrency parameters, detailing their actual effect on backup tasks.
  • Performance Tuning Recommendation: Recommends using the TiKV configuration parameter backup.num-threads as the primary method for controlling backup impact and performance, rather than the br command-line parameters.
  • Example Command Updates: Removes the --ratelimit parameter from several example tiup br backup commands in the documentation.

Changelog

Click here to see the changelog
  • br/br-snapshot-guide.md
    • Removed --ratelimit 128 from the example tiup br backup full command.
    • Removed the description for the --ratelimit parameter.
    • Revised the section on controlling backup impact, recommending tikv.backup.num-threads as the primary method and explaining --ratelimit as an alternative with caveats.
  • br/br-snapshot-manual.md
    • Removed --ratelimit 128 from the example tiup br backup full command.
    • Removed the description for the --ratelimit parameter.
    • Removed --ratelimit 128 from the example tiup br backup db command.
    • Removed --ratelimit 128 from the example tiup br backup table command.
    • Removed --ratelimit 128 from the example tiup br backup full command with filtering.
  • br/use-br-command-line-tool.md
    • Updated the description for the --concurrency parameter to clarify its role in request splitting and recommend tikv.backup.num-threads for performance tuning.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request provides a valuable update to the documentation for BR's --ratelimit and --concurrency parameters. The changes significantly improve clarity by:

  • Recommending backup.num-threads as the primary method for controlling backup impact, and positioning --ratelimit as an alternative for specific scenarios.
  • Clarifying the current role and effect of the --concurrency parameter.

The updated descriptions are more informative and will help users better understand how to manage backup performance and resource utilization. The changes generally adhere to the TiDB Documentation Style Guide.

I have a few minor suggestions for further refinement, mostly related to consistency and formatting. Overall, this is a good improvement to the documentation.

The review was guided by the TiDB Documentation Style Guide, focusing on:

  • Clarity, Simplicity, Completeness, and Readability (Style Guide Line 14): Ensuring the updated descriptions for ratelimit and concurrency are easy for users to understand.
  • Technical Accuracy and Terminology Consistency (Style Guide Line 16): Verifying parameter names and their descriptions, leading to a suggestion for the backup.num-threads link text.
  • Avoiding Unnecessary Words/Repetition (Style Guide Line 24): Pointing out an extra space.
  • Consistent Terminology (and by extension, formatting) (Style Guide Line 25): Suggesting consistent note formatting.

Summary of Findings

  • Note Formatting Consistency: Suggested a minor change to note formatting for consistency across documentation files.
  • Minor Typographical Error: Identified an extra space after a period that could be removed.
  • Link Text Precision: Recommended updating link text to use the exact parameter name for improved technical accuracy.

Merge Readiness

The pull request significantly improves the documentation for BR's ratelimit and concurrency parameters. The changes are clear, accurate, and well-aligned with the project's direction for these features. I've made a few minor suggestions for consistency and formatting. After addressing these small points, or if they are deemed non-critical, the documentation should be in excellent shape. As per the repository's contribution guidelines, I am providing comments rather than requesting changes to avoid blocking the merge. The final decision to merge rests with the maintainers.

3pointer and others added 3 commits May 16, 2025 11:56
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@hfxsd hfxsd self-assigned this May 16, 2025
@hfxsd hfxsd added translation/from-docs-cn This PR is translated from a PR in pingcap/docs-cn. needs-cherry-pick-release-8.3 Should cherry pick this PR to release-8.3 branch. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. needs-cherry-pick-release-8.4 Should cherry pick this PR to release-8.4 branch. and removed missing-translation-status This PR does not have translation status info. labels May 16, 2025
@hfxsd hfxsd self-requested a review May 16, 2025 06:24
@hfxsd hfxsd changed the title br: update ratelimit description backup: adjust concurrency description after v8.2 May 16, 2025
@hfxsd hfxsd requested a review from YuJuncen May 16, 2025 06:24
Copy link

ti-chi-bot bot commented May 16, 2025

@YuJuncen: adding LGTM is restricted to approvers and reviewers in OWNERS files.

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.

3pointer and others added 2 commits May 20, 2025 10:27
Copy link

ti-chi-bot bot commented May 21, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-05-21 01:57:55.53418886 +0000 UTC m=+140512.635356068: ☑️ agreed by hfxsd.

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label May 21, 2025
@hfxsd hfxsd added the lgtm label May 21, 2025
@hfxsd
Copy link
Collaborator

hfxsd commented May 21, 2025

/approve

Copy link

ti-chi-bot bot commented May 21, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hfxsd

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 the approved label May 21, 2025
@ti-chi-bot ti-chi-bot bot merged commit b7fe1e9 into master May 21, 2025
9 checks passed
ti-chi-bot pushed a commit to ti-chi-bot/docs that referenced this pull request May 21, 2025
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.3: #20985.
But this PR has conflicts, please resolve them!

@ti-chi-bot
Copy link
Member

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

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.4: #20987.
But this PR has conflicts, please resolve them!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm needs-1-more-lgtm Indicates a PR needs 1 more LGTM. needs-cherry-pick-release-8.3 Should cherry pick this PR to release-8.3 branch. needs-cherry-pick-release-8.4 Should cherry pick this PR to release-8.4 branch. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. translation/from-docs-cn This PR is translated from a PR in pingcap/docs-cn.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants