Skip to content

docs: remove outdated CentOS 7 quick start recommendation - #21968

Open
doc-claw-bot wants to merge 3 commits into
pingcap:masterfrom
doc-claw-bot:docs/quick-start-os-recommendation
Open

doc-claw-bot wants to merge 3 commits into
pingcap:masterfrom
doc-claw-bot:docs/quick-start-os-recommendation

Conversation

@doc-claw-bot

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

Copy link
Copy Markdown
Collaborator

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

  • Update the Chinese quick-start-with-tidb.md page to remove the outdated CentOS 7.3/7.6 recommendations in the simulated production deployment section.
  • Fix the cleanup steps in the simulated production deployment section to use tiup cluster stop and tiup cluster destroy instead of the Playground-only Ctrl+C and tiup clean --all flow.
  • Point readers to the current OS and platform requirements page for the supported Linux distribution and CPU architecture combinations.

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 (in Chinese).

  • 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

  • 文档
    • 更新快速入门的环境要求,说明需安装 TiDB 支持的 Linux 发行版,并链接至操作系统及 CPU 架构支持说明。
    • 调整集群清理步骤:先停止集群,再销毁集群。销毁会删除日志、部署和数据目录;如需保留数据,可跳过销毁步骤。

@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/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 8, 2026
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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
Walkthrough

快速开始文档更新了 Linux 发行版和 CPU 架构要求的说明。清理步骤改为先停止集群,再销毁集群,并说明销毁会删除的目录及保留数据时的处理方式。

Changes: TiDB 快速开始文档

Layer / File(s) Summary
更新操作系统要求说明
quick-start-with-tidb.md
将 CentOS 版本建议改为链接至 TiDB 支持的 Linux 发行版,以及支持的操作系统与 CPU 架构组合要求。
更新集群清理步骤
quick-start-with-tidb.md
将步骤改为先运行 tiup cluster stop <cluster-name>,再运行 tiup cluster destroy <cluster-name>。文档说明销毁会删除日志、部署和数据目录;需要保留数据时跳过销毁。移除按 Control+C 停止服务、等待退出及运行 tiup clean --all 的步骤。

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: lilin90, qiancai

Merge Risk: Moderate · up to 0f178

The quick start now tells readers to use any supported Linux distribution, including Ubuntu. Two later steps still use CentOS-only commands, so Ubuntu users may fail to restart SSH or install the MySQL client. The cluster destroy step should also be shown as a warning. Fix these before merging, though the impact is limited to documentation.

Architecture risk: Low · up to fdedc

The change affects 1 system.

Changed systems: quick-start-with-tidb.md

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — quick-start-with-tidb.md (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in quick-start-with-tidb.md: 将推荐安装 CentOS 7.3 及以上版本改为安装 TiDB 支持的 Linux 发行版,并链接至操作系统要求文档。
  • observed — Modified behavior in quick-start-with-tidb.md: 保留 TiUP Cluster 支持 x86_64(AMD64)和 ARM 架构的说明;删除各架构对应的 CentOS 版本建议,并改为链接至支持的操作系统与 CPU 架构组合要求。
  • observed — Modified behavior in quick-start-with-tidb.md: 清理步骤改为先执行 tiup cluster stop <cluster-name>,再执行 tiup cluster destroy <cluster-name>;删除了按 Control+C 停止服务、等待退出并运行 tiup clean --all 的步骤。
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 标题“docs: remove outdated CentOS 7 quick start recommendation”描述了本 PR 的主要变更:删除 quick-start-with-tidb.md 中过时的 CentOS 7 推荐。该标题与变更集相关。标题未提及清理步骤的修改(改用 tiup cluster stop 和 tiup cluster destroy),但这属于次要变更,不影响…
Description check Passed 描述基本完整。已填写变更内容、适用版本(master 与 v8.5)、相关参考链接以及 AI 代理参与情况。变更内容列出了三项修改,与 raw_summary 一致。首次贡献者检查项和 CLA 复选框未勾选,且未在描述中体现;“Do your changes match” 部分未勾选任何选项,这些属于非关键项。描述中的 “Which TiDB version(s)” 与 PR 目标(master …
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: Title check

Explanation

标题“docs: remove outdated CentOS 7 quick start recommendation”描述了本 PR 的主要变更:删除 quick-start-with-tidb.md 中过时的 CentOS 7 推荐。该标题与变更集相关。标题未提及清理步骤的修改(改用 tiup cluster stop 和 tiup cluster destroy),但这属于次要变更,不影响通过判定。

Full details: Description check

Explanation

描述基本完整。已填写变更内容、适用版本(master 与 v8.5)、相关参考链接以及 AI 代理参与情况。变更内容列出了三项修改,与 raw_summary 一致。首次贡献者检查项和 CLA 复选框未勾选,且未在描述中体现;“Do your changes match” 部分未勾选任何选项,这些属于非关键项。描述中的 “Which TiDB version(s)” 与 PR 目标(master 与 8.5)一致。

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. translation/from-docs This PR is translated from a PR in pingcap/docs. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. labels Oct 8, 2026
@ti-chi-bot ti-chi-bot Bot removed the missing-translation-status This PR does not have translation status info. label Oct 8, 2026
@ti-chi-bot ti-chi-bot Bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 12, 2026
@ti-chi-bot

ti-chi-bot Bot commented Dec 4, 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 kissmydb 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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments

Major 2
  1. Ubuntu 上的 SSH 服务重启步骤可能失败。
  2. 快速入门中的客户端安装命令不适用于 Ubuntu。
Minor 1
  1. 使用警告块标识销毁风险。
Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fdedcc7 and 0f178c1.

Files selected for processing: 1

  • quick-start-with-tidb.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 quick-start-with-tidb.md
- 目前 TiUP Cluster 支持在 x86_64(AMD64)和 ARM 架构上部署 TiDB 集群
- 在 AMD64 架构下,建议使用 CentOS 7.3 及以上版本 Linux 操作系统
- 在 ARM 架构下,建议使用 CentOS 7.6 (1810) 版本 Linux 操作系统
- 目前 TiUP Cluster 支持在 x86_64(AMD64)和 ARM 64 架构上部署 TiDB 集群。支持的操作系统与 CPU 架构组合,请参见[操作系统及平台要求](/hardware-and-software-requirements.md#操作系统及平台要求)。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Major · Functional Correctness · Quick win

Ubuntu 上的 SSH 服务重启步骤可能失败。

前提中的操作系统列表包含 Ubuntu LTS 22.04(x86_64),但模拟多机部署步骤仍执行 service sshd restart(第 352-360 行)。在 Ubuntu 上,SSH 服务通常名为 ssh,该命令可能报告服务不存在。这样,第 354 行修改的 MaxSessions 可能不会生效。

本 PR 把第 287 行的前提从“推荐 CentOS 7.3 及以上版本”改为“安装 TiDB 支持的 Linux 发行版”。修改前,前提仅限 CentOS,与 sshd 命令一致。修改后,Ubuntu 用户也可以按该前提操作,却仍会执行 CentOS 风格的命令。

请确保第 352-360 行的步骤能在前提允许的每个发行版上执行。可选的修复方式有两种:

  • 为 Ubuntu 补充对应的重启命令,例如 service ssh restart。
  • 将该步骤限定为使用 sshd 服务的发行版,并把前提限定为对应发行版。

Major · Functional Correctness · Quick win

快速入门中的客户端安装命令不适用于 Ubuntu。

第 475 行的安装步骤只提供 yum -y install mysql。本 PR 将操作系统建议改为"TiDB 支持的 Linux 发行版",支持列表包含 Ubuntu LTS 22.04(x86_64)。选择 Ubuntu 的用户执行该命令时,系统无法找到 yum,客户端无法安装,后续的连接步骤也无法执行。

请在该步骤中补充 Ubuntu 的安装方法,例如使用 apt 安装 mysql-client 包,并保留 CentOS/RHEL 的 yum 命令。

Comment thread quick-start-with-tidb.md
tiup cluster stop <cluster-name>
```

2. 集群停止后,销毁集群。此命令会删除集群中各服务的日志目录、部署目录和数据目录。如需保留集群数据,请跳过此步骤。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor · Data Integrity & Integration · Quick win

使用警告块标识销毁风险。

该步骤会不可逆地删除数据目录。请在销毁命令之前使用“警告”块,并保留删除范围和跳过条件。

As per coding guidelines,“高风险行为使用‘警告’,例如可能导致数据丢失、服务中断、不可逆操作”。

Source: Coding guidelines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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/S Denotes a PR that changes 10-29 lines, ignoring generated files. translation/from-docs This PR is translated from a PR in pingcap/docs. type/bugfix This PR fixes a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants