Skip to content

docs: roll back v8.5.6 TopSQL multidimensional docs#22910

Open
yibin87 wants to merge 3 commits into
pingcap:release-8.5from
yibin87:rollback-v8.5.6-topsql-docs-clean
Open

docs: roll back v8.5.6 TopSQL multidimensional docs#22910
yibin87 wants to merge 3 commits into
pingcap:release-8.5from
yibin87:rollback-v8.5.6-topsql-docs-clean

Conversation

@yibin87
Copy link
Copy Markdown
Contributor

@yibin87 yibin87 commented May 19, 2026

What is changed, added or deleted? (Required)

  • roll back the v8.5.6 TopSQL multidimensional docs changes introduced by v8.5.6: refresh TopSQL docs and screenshots (#22559) #22734
  • revert the related Top SQL, TiKV configuration, and TiDB Cloud Clinic descriptions to remove unsupported network IO and logical IO guidance in v8.5.6
  • remove the related promotion from releases/release-8.5.6.md

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

  • 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)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)

What is the related PR or file 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

Signed-off-by: yibin87 <huyibin@pingcap.com>
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented May 19, 2026

[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 oreoxmt 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 missing-translation-status This PR does not have translation status info. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 19, 2026
Copy link
Copy Markdown
Contributor

@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 refactors the Top SQL documentation to focus on CPU overhead, removing references to multi-dimensional metrics such as Network and Logical IO across several files. It also updates the TiKV configuration documentation to include new storage.max-ts parameters for v9.0.0 and adjusts versioning information for various features. Reviewer feedback focuses on maintaining terminology consistency (specifically using 'Top SQL' with a space), improving grammatical flow, avoiding passive voice in instructions, and ensuring that links to configuration templates point to version-specific branches rather than the master branch.

Comment thread tikv-configuration-file.md Outdated
<!-- markdownlint-disable MD001 -->

The TiKV configuration file supports more options than command-line parameters. You can find the default configuration file in [etc/config-template.toml](https://github.com/tikv/tikv/blob/release-8.5/etc/config-template.toml) and rename it to `config.toml`.
The TiKV configuration file supports more options than command-line parameters. You can find the default configuration file in [etc/config-template.toml](https://github.com/tikv/tikv/blob/master/etc/config-template.toml) and rename it to `config.toml`.
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.

medium

Technical accuracy: The link to the configuration template has been changed from the version-specific branch (release-8.5) to master. For versioned documentation, it is better to point to the corresponding release branch to ensure users see the correct default configuration for their version.

Suggested change
The TiKV configuration file supports more options than command-line parameters. You can find the default configuration file in [etc/config-template.toml](https://github.com/tikv/tikv/blob/master/etc/config-template.toml) and rename it to `config.toml`.
The TiKV configuration file supports more options than command-line parameters. You can find the default configuration file in [etc/config-template.toml](https://github.com/tikv/tikv/blob/release-8.5/etc/config-template.toml) and rename it to `config.toml`.

Comment thread dashboard/top-sql.md
![Select Instance](/media/dashboard/top-sql-usage-select-instance.png)

If the chart is out of date, click **Refresh** to refresh once, or select the data auto-refresh frequency from the **Refresh** drop-down list.
If you are unsure of which TiDB or TiKV instance to observe, you can select an arbitrary instance. Also, when the cluster CPU load is extremely unbalanced, you can first use Grafana charts to determine the specific instance you want to observe.
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.

low

Grammar: "unsure of which" can be simplified to "unsure which" for better flow and conciseness.

Suggested change
If you are unsure of which TiDB or TiKV instance to observe, you can select an arbitrary instance. Also, when the cluster CPU load is extremely unbalanced, you can first use Grafana charts to determine the specific instance you want to observe.
If you are unsure which TiDB or TiKV instance to observe, you can select an arbitrary instance. Also, when the cluster CPU load is extremely unbalanced, you can first use Grafana charts to determine the specific instance you want to observe.

Comment thread dashboard/top-sql.md
![Refresh](/media/dashboard/top-sql-usage-refresh.png)

6. In the `By Query` view, click a row in the table to view the execution plan details for that type of SQL.
6. View the CPU resource usage by table or database level to quickly identify resource usage at a higher level. Currently, only TiKV instances are supported.
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.

low

Grammar: "by table or database level" should be "at the table or database level".

Suggested change
6. View the CPU resource usage by table or database level to quickly identify resource usage at a higher level. Currently, only TiKV instances are supported.
6. View the CPU resource usage at the table or database level to quickly identify resource usage at a higher level. Currently, only TiKV instances are supported.

Comment thread dashboard/top-sql.md

1. Visit the [Top SQL page](#access-the-page).
2. Click the gear icon in the upper right corner to open the settings pane and disable the **Enable Feature** switch.
1. Visit [Top SQL page](#access-the-page).
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.

low

Missing article: "Visit the [Top SQL page]" for consistency with other steps in this document.

Suggested change
1. Visit [Top SQL page](#access-the-page).
1. Visit the [Top SQL page](#access-the-page).

Comment thread dashboard/top-sql.md
**4. What is the meaning of "Other Statements"?**

`Others` represents the summary result of all non-Top N records under the current sort dimension. You can use it to understand how much of the total workload comes from the Top N records.
"Other Statement" counts the total CPU overhead of all non-Top 5 statements. With this information, you can learn the CPU overhead contributed by the Top 5 statements compared with the overall.
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.

low

Consistency: Use "Other Statements" (plural) to match the heading in line 136.

Suggested change
"Other Statement" counts the total CPU overhead of all non-Top 5 statements. With this information, you can learn the CPU overhead contributed by the Top 5 statements compared with the overall.
"Other Statements" counts the total CPU overhead of all non-Top 5 statements. With this information, you can learn the CPU overhead contributed by the Top 5 statements compared with the overall.

Comment thread tidb-cloud/tidb-cloud-clinic.md Outdated
2. From the organization list, select your target organization. The clusters in the selected project are displayed.

3. Click the name of your target TiDB Cloud Dedicated cluster. The cluster overview page is displayed, where you can view detailed information about your cluster, including:
3. Click the name of your target cluster. The cluster overview page is displayed, where you can view detailed information about your cluster, including:
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.

low

Avoid passive voice ("is displayed"). Using an active verb makes the instruction clearer and more direct.

Suggested change
3. Click the name of your target cluster. The cluster overview page is displayed, where you can view detailed information about your cluster, including:
3. Click the name of your target cluster to open the cluster overview page, where you can view detailed information about your cluster, including:

Comment thread tidb-cloud/tidb-cloud-clinic.md Outdated
- Advanced Metrics
- Top Slow Queries (only supported when the TiDB version of the cluster is v8.1.1 or later, v7.5.4 or later)
- Top SQL (only supported when the TiDB version of the cluster is v8.1.1 or later, v7.5.4 or later)
- TopSQL (only supported when the TiDB version of the cluster is v8.1.1 or later, v7.5.4 or later)
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.

low

Consistency: The feature name is "Top SQL" (with a space). Please use the consistent term throughout the documentation.

Suggested change
- TopSQL (only supported when the TiDB version of the cluster is v8.1.1 or later, v7.5.4 or later)
- Top SQL (only supported when the TiDB version of the cluster is v8.1.1 or later, v7.5.4 or later)

Comment thread tidb-cloud/tidb-cloud-clinic.md Outdated
Comment on lines +94 to +108
## Monitor TopSQL

TiDB Cloud Clinic provides Top SQL information to help you visually analyze the most resource-intensive queries on a specific TiDB or TiKV node over a period of time. By default, Top SQL continuously collects CPU load data. For TiKV nodes, if TiKV network IO collection is enabled, you can also inspect `Network Bytes` and `Logical IO Bytes`, and analyze hotspots by `Query`, `Table`, `DB`, or `Region`. This helps you identify and troubleshoot performance issues across multiple resource dimensions, not just CPU.
TiDB Cloud Clinic provides TopSQL information, enabling you to monitor and visually explore the CPU overhead of each SQL statement in your database in real time. This helps you optimize and resolve database performance issues.

To view Top SQL, take the following steps:
To view TopSQL, take the following steps:

1. In the [TiDB Cloud Clinic console](https://clinic.pingcap.com/), navigate to the **Cluster** page of a cluster.

2. Click **Top SQL**.
2. Click **TopSQL**.

3. Select a specific TiDB or TiKV node to observe its workload. You can use the time picker or select a time range in the chart to refine your analysis.
3. Select a specific TiDB or TiKV instance to observe its load. You can use the time picker or select a time range in the chart to refine your analysis.

4. Analyze the charts and tables displayed by Top SQL. Depending on the selected node and enabled metrics, you can use `Order By` and the available aggregation dimensions to inspect CPU, network, or logical I/O hotspots.
4. Analyze the charts and tables displayed by TopSQL.

For more information, see [Top SQL in TiDB Dashboard](https://docs.pingcap.com/tidb/stable/top-sql).
For more information, see [TopSQL in TiDB Dashboard](https://docs.pingcap.com/tidb/stable/top-sql).
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.

low

Consistency: The term "Top SQL" is used consistently throughout the documentation. Changing it to "TopSQL" here introduces inconsistency. Also, please remove the trailing space at the end of line 108.

Suggested change
## Monitor TopSQL
TiDB Cloud Clinic provides Top SQL information to help you visually analyze the most resource-intensive queries on a specific TiDB or TiKV node over a period of time. By default, Top SQL continuously collects CPU load data. For TiKV nodes, if TiKV network IO collection is enabled, you can also inspect `Network Bytes` and `Logical IO Bytes`, and analyze hotspots by `Query`, `Table`, `DB`, or `Region`. This helps you identify and troubleshoot performance issues across multiple resource dimensions, not just CPU.
TiDB Cloud Clinic provides TopSQL information, enabling you to monitor and visually explore the CPU overhead of each SQL statement in your database in real time. This helps you optimize and resolve database performance issues.
To view Top SQL, take the following steps:
To view TopSQL, take the following steps:
1. In the [TiDB Cloud Clinic console](https://clinic.pingcap.com/), navigate to the **Cluster** page of a cluster.
2. Click **Top SQL**.
2. Click **TopSQL**.
3. Select a specific TiDB or TiKV node to observe its workload. You can use the time picker or select a time range in the chart to refine your analysis.
3. Select a specific TiDB or TiKV instance to observe its load. You can use the time picker or select a time range in the chart to refine your analysis.
4. Analyze the charts and tables displayed by Top SQL. Depending on the selected node and enabled metrics, you can use `Order By` and the available aggregation dimensions to inspect CPU, network, or logical I/O hotspots.
4. Analyze the charts and tables displayed by TopSQL.
For more information, see [Top SQL in TiDB Dashboard](https://docs.pingcap.com/tidb/stable/top-sql).
For more information, see [TopSQL in TiDB Dashboard](https://docs.pingcap.com/tidb/stable/top-sql).
## Monitor Top SQL\n\nTiDB Cloud Clinic provides Top SQL information, enabling you to monitor and visually explore the CPU overhead of each SQL statement in your database in real time. This helps you optimize and resolve database performance issues.\n\nTo view Top SQL, take the following steps:\n\n1. In the [TiDB Cloud Clinic console](https://clinic.pingcap.com/), navigate to the **Cluster** page of a cluster.\n\n2. Click **Top SQL**.\n\n3. Select a specific TiDB or TiKV instance to observe its load. You can use the time picker or select a time range in the chart to refine your analysis.\n\n4. Analyze the charts and tables displayed by Top SQL.\n\nFor more information, see [Top SQL in TiDB Dashboard](https://docs.pingcap.com/tidb/stable/top-sql).

yibin87 added 2 commits May 19, 2026 17:33
Signed-off-by: yibin87 <huyibin@pingcap.com>
Signed-off-by: yibin87 <huyibin@pingcap.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/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 19, 2026
@yibin87 yibin87 requested a review from qiancai May 19, 2026 09:38
@ti-chi-bot ti-chi-bot Bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label May 19, 2026
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented May 19, 2026

[LGTM Timeline notifier]

Timeline:

  • 2026-05-19 09:57:33.481962684 +0000 UTC m=+258182.986093360: ☑️ agreed by qiancai.

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

Labels

missing-translation-status This PR does not have translation status info. needs-1-more-lgtm Indicates a PR needs 1 more LGTM. 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.

2 participants