Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c632551
dashboard: refresh Top SQL docs and screenshots
yibin87 Mar 13, 2026
712019b
tidb-cloud: refresh Clinic TopSQL description
yibin87 Mar 13, 2026
ba95584
docs: use TopSQL naming consistently
yibin87 Mar 13, 2026
0d4ccae
releases: fix TopSQL anchor links
yibin87 Mar 13, 2026
bc56fd4
docs: add TopSQL legacy anchor alias
yibin87 Mar 13, 2026
ffea569
releases: restore release-8.5.0 formatting
yibin87 Mar 13, 2026
8d46205
tidb-cloud: restore TopSQL stable doc link
yibin87 Mar 13, 2026
3054df1
docs: use explicit TopSQL anchor id
yibin87 Mar 13, 2026
85d6445
docs: fix TopSQL screenshot version labels
yibin87 Mar 18, 2026
9ed3040
docs: fix TopSQL header version labels
yibin87 Mar 18, 2026
2975f46
docs: preserve TopSQL screenshot header styling
yibin87 Mar 18, 2026
aab3bb5
docs: fix TopSQL screenshot version text
yibin87 Mar 18, 2026
d24348f
docs: revert TopSQL screenshot version changes
yibin87 Mar 18, 2026
5920945
docs: update Top SQL screenshot version labels
yibin87 Mar 18, 2026
2fafa8c
Revert "docs: update Top SQL screenshot version labels"
yibin87 Mar 18, 2026
b5de740
docs: align TopSQL screenshots to v8.5.6
yibin87 Mar 18, 2026
bbb73a0
docs: revert TopSQL nav label change
yibin87 Mar 18, 2026
58e4a3a
TopSQL -> Top SQL
qiancai Mar 30, 2026
d6fb120
sync changes from https://github.com/pingcap/docs-cn/pull/21431/files
qiancai Mar 30, 2026
a73c91c
tidb-cloud/tidb-cloud-clinic.md: TopSQL -> Top SQL
qiancai Mar 30, 2026
b580601
instance -> node
qiancai Mar 30, 2026
878c17d
add v8.5 to image names to avoid replacing images in old branches
qiancai Mar 30, 2026
d2d1e1c
add v9.0.0
qiancai Mar 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 113 additions & 39 deletions dashboard/top-sql.md

Large diffs are not rendered by default.

Binary file added media/dashboard/v8.5-top-sql-access.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/dashboard/v8.5-top-sql-details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/dashboard/v8.5-top-sql-usage-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/dashboard/v8.5-top-sql-usage-refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions tidb-cloud/tidb-cloud-clinic.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ To view the **Cluster** page, take the following steps:

- 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)
- 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)
- Benchmark Report

## Monitor advanced metrics
Expand Down Expand Up @@ -91,21 +91,21 @@ The retention policy for slow queries is 7 days.

For more information, see [Slow Queries in TiDB Dashboard](https://docs.pingcap.com/tidb/stable/dashboard-slow-query).

## Monitor TopSQL
## Monitor Top SQL

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.
TiDB Cloud Clinic provides Top SQL information to help you visually analyze the most resource-intensive queries on a specific TiDB or TiKV instance over a period of time. By default, Top SQL continuously collects CPU load data. For TiKV instances, 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.

To view TopSQL, take the following steps:
To view Top SQL, 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 **TopSQL**.
2. Click **Top SQL**.

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 TopSQL.
4. Analyze the charts and tables displayed by Top SQL. Depending on the selected instance and enabled metrics, you can use `Order By` and the available aggregation dimensions to inspect CPU, network, or logical I/O hotspots.

For more information, see [TopSQL in TiDB Dashboard](https://docs.pingcap.com/tidb/stable/top-sql).
For more information, see [Top SQL in TiDB Dashboard](https://docs.pingcap.com/tidb/stable/top-sql).

## Generate benchmark reports

Expand Down
15 changes: 15 additions & 0 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -2672,6 +2672,21 @@ To reduce write latency, TiKV periodically fetches and caches a batch of timesta
+ In a default TSO physical time update interval (`50ms`), PD provides at most 262144 TSOs. When requested TSOs exceed this number, PD provides no more TSOs. This configuration item is used to avoid exhausting TSOs and the reverse impact of TSO exhaustion on other businesses. If you increase the value of this configuration item to improve high availability, you need to decrease the value of [`tso-update-physical-interval`](/pd-configuration-file.md#tso-update-physical-interval) at the same time to get enough TSOs.
+ Default value: `8192`

## resource-metering

Configuration items related to resource metering.

### `enable-network-io-collection` <span class="version-mark">New in v8.5.6 and v9.0.0</span>

+ Whether to additionally collect TiKV network traffic and logical I/O information in [Top SQL](/dashboard/top-sql.md).
+ When enabled, TiKV additionally records inbound network bytes, outbound network bytes, logical read bytes, and logical write bytes during request processing.
+ When reporting resource consumption, TiKV filters the Top N records based on CPU time, network traffic, and logical I/O, and additionally reports these statistics by Region for more fine-grained analysis of hotspot requests or resource usage sources.
+ Default value: `false`

> **Note:**
>
> Logical I/O refers to the logical amount of data processed by requests at the TiKV storage layer, such as the amount of data scanned or processed during reads, and the logical write bytes of write requests themselves. Physical I/O refers to the actual disk read/write traffic that occurs on the underlying storage device, which is affected by block cache, compaction, flush, and other factors. Therefore, logical I/O is not equivalent to actual physical I/O, and they cannot be directly mapped one-to-one.

## resource-control

Configuration items related to resource control of the TiKV storage layer.
Expand Down
Loading