Skip to content

Fix deployment doc inconsistencies - #24451

Open
doc-claw-bot wants to merge 6 commits into
pingcap:masterfrom
doc-claw-bot:docs/fix-tiup-deployment-inconsistencies
Open

doc-claw-bot wants to merge 6 commits into
pingcap:masterfrom
doc-claw-bot:docs/fix-tiup-deployment-inconsistencies

Conversation

@doc-claw-bot

@doc-claw-bot doc-claw-bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

What is changed, added, or deleted? (Required)

Fix four deployment-doc inconsistencies in the TiDB Self-Managed guides:

  • clarify the difference between disabling swap and lowering swap priority, and remove the command sequence that re-enabled swap immediately
  • replace the stale v6.1.0 NUMA deployment example with the version placeholder v{{{ .tidb-version }}}
  • correct the topology section count from six scenarios to five
  • document that clusters started with tiup cluster start --init require -p when logging in as root

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.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)

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

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

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

Summary by CodeRabbit

  • Documentation
    • Updated swap guidance with separate options for disabling swap or keeping it enabled on low-memory systems, including checks after disabling and rebooting.
    • Updated the TiUP deployment example to use the templated TiDB version.
    • Clarified Dashboard and database login instructions, including when passwords are generated, prompted for, or not required.
    • Corrected the production deployment guide to refer to five common deployment scenarios.

@ti-chi-bot ti-chi-bot Bot added contribution This PR is from a community contributor. 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 Oct 14, 2026
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: pingcap/docs
  • Branch: master
  • File: .coderabbit.yaml
  • Commit: a0a22ca
  • Layers: Repository YAML
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 5c167bad-49f6-4875-a8e4-228321a35c35
Commits

Reviewing files that changed from the base of the PR and between 2c11fcd and 6651418.

Files selected for processing: 1
  • check-before-deployment.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

Walkthrough

The documentation updates swap guidance, a TiUP version example, post-installation login instructions, and the stated number of common deployment scenarios.

Changes: Deployment documentation

Layer / File(s) Summary
Deployment guidance
check-before-deployment.md, production-deployment-using-tiup.md
Swap guidance distinguishes disabling swap for latency-sensitive hosts from setting vm.swappiness=0 when memory is insufficient. It adds steps to disable swap, prevent its reactivation, and check its status after reboot. The TiUP example uses .tidb-version, and the stated scenario count changes from six to five.
Post-installation login
post-installation-check.md
Dashboard and database login instructions specify the root username and explain when to enter a password or omit -p.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Suggested reviewers: hfxsd, qiancai

Merge Risk: Minimal · previous review 66514

The documentation updates are ready to merge with no verified blocking risk.

Architecture risk: Low · up to 9146c

The change affects 3 systems.

Changed systems: check-before-deployment.md, post-installation-check.md, production-deployment-using-tiup.md

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — check-before-deployment.md (service) was modified; 1 changed file maps to changed impact.
  • observed — post-installation-check.md (service) was modified; 1 changed file maps to changed impact.
  • observed — production-deployment-using-tiup.md (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in check-before-deployment.md: The swap instructions now use swapoff -a to disable active swap and remove or comment out the /etc/fstab swap entry to keep it disabled after reboot. The previous permanent-disable procedure that set vm.swappiness = 0 and ran swapoff -a && swapon -a was removed; the separate low-memory swap-priority guidance remains unchanged.
  • observed — Modified behavior in check-before-deployment.md: The TiUP deployment example replaces the fixed v6.1.0 version with the .tidb-version template.
  • observed — Modified behavior in post-installation-check.md: Added conditional login instructions: when the cluster was started with --init, use the -p option and enter the generated password.
  • observed — Modified behavior in production-deployment-using-tiup.md: The introduction now says the examples cover five common scenarios instead of six.
Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the main change: fixing inconsistencies in the deployment documentation.
Description check Passed The description explains the four documentation changes, identifies the affected versions, provides a related link, and completes the AI involvement and change-type sections. The first-time contributo…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the four documentation changes, identifies the affected versions, provides a related link, and completes the AI involvement and change-type sections. The first-time contributor checklist is omitted, which is acceptable if the author is not a first-time contributor.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@doc-claw-bot doc-claw-bot added type/bugfix This PR fixes a bug. area/tiup Indicates that the Issue or PR belongs to the area of the TiUP tool. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. and removed missing-translation-status This PR does not have translation status info. labels Oct 14, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: pingcap/docs/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: aaf2cebe-2c1c-4fb6-98eb-029d69f4b9cb
📥 Commits

Reviewing files that changed from the base of the PR and between a0a22ca and 9146c06.

📒 Files selected for processing: 3
  • check-before-deployment.md
  • post-installation-check.md
  • production-deployment-using-tiup.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Comment thread check-before-deployment.md Resolved
@ti-chi-bot

ti-chi-bot Bot commented Nov 2, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign lance6716 for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details 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 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 Nov 2, 2026
@qiancai qiancai changed the title Fix TiUP deployment doc inconsistencies Fix deployment doc inconsistencies Nov 2, 2026
Comment thread check-before-deployment.md Resolved
Comment thread check-before-deployment.md Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tiup Indicates that the Issue or PR belongs to the area of the TiUP tool. contribution This PR is from a community contributor. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. type/bugfix This PR fixes a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants