Skip to content

tidb-cloud: add Top RU user guide (web console, Premium + Essential)#22989

Merged
ti-chi-bot[bot] merged 15 commits into
pingcap:release-8.5from
huoyao1125:huoyao1125/top-ru-web-console
Jun 2, 2026
Merged

tidb-cloud: add Top RU user guide (web console, Premium + Essential)#22989
ti-chi-bot[bot] merged 15 commits into
pingcap:release-8.5from
huoyao1125:huoyao1125/top-ru-web-console

Conversation

@huoyao1125
Copy link
Copy Markdown

What is changed, added or deleted?

This PR adds a complete user guide for the Top RU feature in the TiDB Cloud web console, targeting both Premium and Essential product tiers.

Changes:

  • Add tidb-cloud/top-ru.md: full user-facing documentation for Top RU
  • Update TOC-tidb-cloud.md: add Top RU entry under Monitor and Alert

Why this PR

PR #22760 attempted to document Top RU but has several critical issues:

  1. Wrong product surface — placed the doc under Clinic, but Top RU is in the web console
  2. Essential tier completely missing
  3. Internal engineering perspective instead of user-facing content
  4. Key features missing: Rank by Users panel, Top N configs per tier, data retention, time range details, drill-down plan scenarios

This PR addresses all of the above. See issue #22988 for full details.

What this doc covers

  • Product tier comparison table (Premium vs Essential capabilities, Top N, data retention)
  • Step-by-step: how to open Top RU, set filters, read the SQL list, view RU trends
  • Premium-only: Rank by Users panel + Sliced by Users tab
  • Drill-down panel for SQL details: 3 scenarios based on plan count and availability
  • Typical investigation workflow
  • Limitations and FAQ

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

  • master (the latest development version)
  • v8.5 (TiDB 8.5 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

@ti-chi-bot ti-chi-bot Bot added first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. missing-translation-status This PR does not have translation status info. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 1, 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 introduces a new documentation page for the "Top RU" feature in TiDB Cloud, which ranks SQL statements by their Request Unit (RU) consumption, and updates the table of contents to include this new page. The review feedback focuses on improving the documentation's clarity, style, and consistency by suggesting active voice rewrites to replace passive constructions, refining terminology (such as using "left navigation pane" and "SQL statement"), correcting link targets, and clarifying specific steps in the workflow and limitations sections.

Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
|---|---|
| SQL Statement | Normalized SQL template |
| Total RU | Total RU consumed by this SQL in the selected time range |
| RU Share % | Percentage of total cluster RU consumed by this SQL. The top N SQLs together account for less than 100%; adding the **Others** row gives 100%. |
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

Use "SQL statement" and "SQL statements" instead of "SQL" and "SQLs" to be more precise and professional.

Suggested change
| RU Share % | Percentage of total cluster RU consumed by this SQL. The top N SQLs together account for less than 100%; adding the **Others** row gives 100%. |
| RU Share % | Percentage of total cluster RU consumed by this SQL statement. The top N SQL statements together account for less than 100%; adding the **Others** row gives 100%. |
References
  1. Use consistent terminology and avoid unnecessary words. (link)

Comment thread tidb-cloud/top-ru.md Outdated
| Total RU | Total RU consumed by this SQL in the selected time range |
| RU Share % | Percentage of total cluster RU consumed by this SQL. The top N SQLs together account for less than 100%; adding the **Others** row gives 100%. |
| Execution Count | Number of times this SQL was executed in the selected time range |
| User | Database user(s) that ran this SQL (Premium only). A single SQL digest may be executed by multiple users. |
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

Rewrite the passive sentence "A single SQL digest may be executed by multiple users" to active voice to improve readability and adhere to the style guide.

Suggested change
| User | Database user(s) that ran this SQL (Premium only). A single SQL digest may be executed by multiple users. |
| User | Database user(s) that ran this SQL (Premium only). Multiple users can execute a single SQL digest. |
References
  1. Avoid passive voice overuse. (link)

Comment thread tidb-cloud/top-ru.md Outdated

### Rank by Users panel

The **Overview** tab includes a **Rank by Users** panel that shows a ranked list of database users by their total RU consumption for the selected time range. Use this to quickly determine whether the RU spike is driven by a specific user or application.
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 driven by") by rewriting the sentence to active voice.

Suggested change
The **Overview** tab includes a **Rank by Users** panel that shows a ranked list of database users by their total RU consumption for the selected time range. Use this to quickly determine whether the RU spike is driven by a specific user or application.
The **Overview** tab includes a **Rank by Users** panel that shows a ranked list of database users by their total RU consumption for the selected time range. Use this to quickly determine whether a specific user or application drives the RU spike.
References
  1. Avoid passive voice overuse. (link)

Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
- **TopN grouping**: SQL statements with lower RU may be grouped into **Others** rather than shown individually.
- **Data freshness**: 15 seconds.
- **Maximum query window**: 24 hours per time range selection.
- **Essential limitations**: The Sliced by Users tab and Rank by Users panel are not available for Essential clusters.
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

Bold the UI elements (Sliced by Users tab and Rank by Users panel) and use active voice.

Suggested change
- **Essential limitations**: The Sliced by Users tab and Rank by Users panel are not available for Essential clusters.
- **Essential limitations**: Essential clusters do not support the **Sliced by Users** tab and the **Rank by Users** panel.

Comment thread tidb-cloud/top-ru.md
Comment thread tidb-cloud/top-ru.md Outdated
### Why is there no data in Top RU?

- Make sure the selected time range contains actual SQL workload.
- Refresh the page after running workload for at least 15 seconds.
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

Add "your" before "workload" to make the instruction more natural.

Suggested change
- Refresh the page after running workload for at least 15 seconds.
- Refresh the page after running your workload for at least 15 seconds.

Comment thread tidb-cloud/top-ru.md Outdated
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@hfxsd hfxsd self-assigned this Jun 2, 2026
@hfxsd hfxsd added translation/no-need No need to translate this PR. and removed missing-translation-status This PR does not have translation status info. labels Jun 2, 2026
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Jun 2, 2026

@zhoucai-pingcap: adding LGTM is restricted to approvers and reviewers in OWNERS files.

Details

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.

huoyao1125 and others added 3 commits June 2, 2026 10:33
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>
Comment thread tidb-cloud/top-ru.md Outdated
huoyao1125 and others added 2 commits June 2, 2026 11:21
Add the Top RU TOC link to the Essential and Premium TOCs and remove it from the main TiDB Cloud TOC to avoid duplication. This places the Top RU page under the Monitor and Alert section for tier-specific documentation. Files changed: TOC-tidb-cloud-essential.md, TOC-tidb-cloud-premium.md, TOC-tidb-cloud.md.
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
@hfxsd hfxsd requested a review from Oreoxmt June 2, 2026 05:52
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated
Comment thread tidb-cloud/top-ru.md Outdated

- Make sure the selected time range contains actual SQL workload.
- Refresh the page after running workload for at least 1 min.
- Check [TiDB Cloud Release Notes](/tidb-cloud/releases/tidb-cloud-release-notes.md) to confirm that Top RU is available for your instance version and region.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- Check [TiDB Cloud Release Notes](/tidb-cloud/releases/tidb-cloud-release-notes.md) to confirm that Top RU is available for your instance version and region.
- Check [TiDB Cloud Release Notes](/tidb-cloud/releases/tidb-cloud-release-notes.md) to confirm that Top RU is available for your {{{ .essential }}} or {{{ .premium }}} instance version and region.

Comment thread tidb-cloud/top-ru.md Outdated
Copy link
Copy Markdown
Collaborator

@Oreoxmt Oreoxmt left a comment

Choose a reason for hiding this comment

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

Rest LGTM

@ti-chi-bot ti-chi-bot Bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jun 2, 2026
Co-authored-by: Aolin <aolinz@outlook.com>
@ti-chi-bot ti-chi-bot Bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jun 2, 2026
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Jun 2, 2026

[LGTM Timeline notifier]

Timeline:

  • 2026-06-02 07:09:20.348633631 +0000 UTC m=+252661.418951021: ☑️ agreed by Oreoxmt.
  • 2026-06-02 07:18:28.255041417 +0000 UTC m=+253209.325358807: ☑️ agreed by hfxsd.

github-actions Bot pushed a commit to doc-claw-bot/pingcap-docsite-preview that referenced this pull request Jun 2, 2026
Comment thread tidb-cloud/top-ru.md Outdated
@hfxsd
Copy link
Copy Markdown
Collaborator

hfxsd commented Jun 2, 2026

/approve

@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Jun 2, 2026

[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

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 the approved label Jun 2, 2026
@ti-chi-bot ti-chi-bot Bot merged commit 2b051cc into pingcap:release-8.5 Jun 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. lgtm size/L Denotes a PR that changes 100-499 lines, ignoring generated files. translation/no-need No need to translate this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants