Skip to content

tidb-cloud: document CSE load-based split in 2609 - #23939

Open
lhy1024 wants to merge 3 commits into
pingcap:masterfrom
lhy1024:docs/cse-load-base-split-2609
Open

lhy1024 wants to merge 3 commits into
pingcap:masterfrom
lhy1024:docs/cse-load-base-split-2609

Conversation

@lhy1024

@lhy1024 lhy1024 commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

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

Document CSE support for Load Base Split in TiDB Cloud 2609 in the existing Load Base Split page. LBS has existed since TiDB 4.0; this change documents its CSE implementation and explicitly states that it is disabled by default in CSE.

Add the split-selection behavior and limitations, and use platform-specific CustomContent blocks to separate the existing self-managed TiKV configuration instructions from the CSE content.

This is a draft for review. Supported Cloud plans and the customer-facing enablement procedure remain TODOs and must be confirmed before publication.

Target master first, then cherry-pick to release-8.5 under the agreed Cloud documentation workflow. The release-8.5 checkbox below refers to the documentation publication branch; the CSE product version is Cloud 2609. No TOC changes are included because this updates an existing page.

Validation: ./scripts/markdownlint configure-load-base-split.md and git diff --check passed.

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
    • Added TiDB Cloud guidance for Load Base Split support in Cloud Storage Engine, available from Cloud.2609.1 for Essential and Premium in private preview and disabled by default.
    • Explained how split ranges are selected, when CPU-based fallback applies, how split boundaries are chosen, and how validation and PD scheduling work.
    • Documented limitations involving single hot keys, cross-Region query overhead, CPU metrics and quotas, and fallback load balancing.

Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com>
@ti-chi-bot

ti-chi-bot Bot commented Sep 23, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 23, 2026
@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

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

The documentation scopes existing usage material to TiDB and adds a TiDB Cloud section describing CSE Load Base Split availability, split selection, validation, PD scheduling, and operational limitations.

Changes: Load Base Split documentation

Layer / File(s) Summary
Platform-scoped usage and Cloud behavior
configure-load-base-split.md
The existing usage material is wrapped in a TiDB-specific block. A TiDB Cloud section describes CSE Load Base Split availability and default state, split selection, validation, PD scheduling, and operational limitations.

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

Change: Other

Merge Risk: Low · up to 52d73

This documentation change adds Cloud Load Base Split guidance. Its enablement instruction may leave Basic support-plan customers without a clear way to request private-preview access. The risk is low and limited to documentation, but the enablement channel should be confirmed and named before publication.

Architecture risk: Low · up to 42199

The change affects 1 system.

Changed systems: configure-load-base-split.md

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — configure-load-base-split.md (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in configure-load-base-split.md: Opens a TiDB-specific content block around the existing usage material.
  • observed — Modified behavior in configure-load-base-split.md: Adds a TiDB Cloud-specific section describing CSE Load Base Split availability and default state, sampled-range split selection, CPU fallback conditions and boundary choices, split validation and PD scheduling, and operational limitations.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the CSE load-based split documentation for Cloud 2609, which matches the changeset. The raw summary shows a new section on Load Base Split in CSE from Cloud.2609.1 and the restructurin…
Description check Passed The description covers the 'What is changed' section with a clear explanation of the CSE documentation, the CustomContent restructuring, draft status, and TODOs. It also fills in the version checkboxe…
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

The title names the CSE load-based split documentation for Cloud 2609, which matches the changeset. The raw summary shows a new section on Load Base Split in CSE from Cloud.2609.1 and the restructuring into platform-specific CustomContent blocks. The title omits the CustomContent restructuring and the limitations, which is acceptable for a short title.

Full details: Description check

Explanation

The description covers the 'What is changed' section with a clear explanation of the CSE documentation, the CustomContent restructuring, draft status, and TODOs. It also fills in the version checkboxes and related PR links, and it reports validation results. It omits the first-time contributor checklist and the AI-agent checkbox is ticked. The template's required sections are present. Its 'What is changed' section is detailed, and the template's required sections are all addressed. The description does not state the CLA checkbox, which is optional because the author is not a first-time contributor or the section was removed.

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

@ti-chi-bot ti-chi-bot Bot added 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 Sep 23, 2026
@lhy1024
lhy1024 marked this pull request as ready for review October 9, 2026 09:01
@ti-chi-bot ti-chi-bot Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 9, 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: ea4cf808-60a7-4503-972c-b3640cd2f7de
📥 Commits

Reviewing files that changed from the base of the PR and between 9c6e33b and 4219969.

📒 Files selected for processing (1)
  • configure-load-base-split.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 configure-load-base-split.md Resolved
@qiancai qiancai self-assigned this Oct 9, 2026
Comment thread configure-load-base-split.md Resolved
@ti-chi-bot

ti-chi-bot Bot commented Nov 27, 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 ask for approval from qiancai. 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

Comment thread configure-load-base-split.md Resolved

Currently, Load Base Split for Cloud Storage Engine is in private preview and is disabled by default. To enable this feature, contact [TiDB Cloud Support](https://docs.pingcap.com/tidbcloud/tidb-cloud-support) to modify the configuration.

When enabled, CSE collects read request statistics over multiple detection rounds to identify sustained hotspots. It first selects a split position from sampled query ranges, aiming to balance read load and reduce queries that span both resulting Regions.

@qiancai qiancai Nov 27, 2026 •

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
When enabled, CSE collects read request statistics over multiple detection rounds to identify sustained hotspots. It first selects a split position from sampled query ranges, aiming to balance read load and reduce queries that span both resulting Regions.
When enabled, Cloud Storage Engine collects read-request statistics across multiple detection rounds to identify sustained hotspots. It uses sampled query ranges to select a split position, aiming to balance read load between the resulting Regions and reduce the number of queries that access both Regions.


When enabled, CSE collects read request statistics over multiple detection rounds to identify sustained hotspots. It first selects a split position from sampled query ranges, aiming to balance read load and reduce queries that span both resulting Regions.

If sampling cannot find a suitable position, CSE can use a CPU-based fallback for expensive scans. This requires a busy local read thread pool, substantial CPU usage by both the Region and the scan, and spare capacity in the gRPC request-handling threads. CSE looks for bucket, SST file, or block boundaries within the hot range, and can fall back to a boundary elsewhere in the Region. The selection uses storage metadata and indexes without scanning data rows.

@qiancai qiancai Nov 27, 2026 •

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
If sampling cannot find a suitable position, CSE can use a CPU-based fallback for expensive scans. This requires a busy local read thread pool, substantial CPU usage by both the Region and the scan, and spare capacity in the gRPC request-handling threads. CSE looks for bucket, SST file, or block boundaries within the hot range, and can fall back to a boundary elsewhere in the Region. The selection uses storage metadata and indexes without scanning data rows.
If sampling does not produce a suitable split position, Cloud Storage Engine can use a CPU-based fallback for CPU-intensive scans. This requires a busy local read thread pool, substantial CPU usage by both the Region and the scan, and spare capacity in the gRPC request-handling threads.
Cloud Storage Engine first looks for available storage boundaries, such as bucket, SST-file, or block boundaries, within the hot range. If none is suitable, it can use a boundary elsewhere in the Region. Cloud Storage Engine selects the split position using storage metadata and indexes, without scanning the Region's data rows.

Comment on lines +107 to +109
Before applying the split, CSE checks that the Region state and split position are still valid. PD can then schedule the resulting Regions to distribute read load.

Consider the following limitations:

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
Before applying the split, CSE checks that the Region state and split position are still valid. PD can then schedule the resulting Regions to distribute read load.
Consider the following limitations:
Before applying a split, Cloud Storage Engine revalidates the Region state and split position. After the split, PD can schedule the resulting Regions across nodes to help distribute the read load.
The following limitations apply:

Comment on lines +111 to +114
- Splitting cannot distribute the load of a single hot key across Regions.
- A split can increase network requests and coordination work for queries that access both resulting Regions.
- The CPU fallback uses local read thread pool CPU usage. It does not include remote coprocessor CPU usage or evaluate CPU usage relative to each keyspace's quota.
- A fallback split does not guarantee equal load between the resulting Regions. Performance gains depend on the access pattern, available node capacity, and subsequent scheduling.

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
- Splitting cannot distribute the load of a single hot key across Regions.
- A split can increase network requests and coordination work for queries that access both resulting Regions.
- The CPU fallback uses local read thread pool CPU usage. It does not include remote coprocessor CPU usage or evaluate CPU usage relative to each keyspace's quota.
- A fallback split does not guarantee equal load between the resulting Regions. Performance gains depend on the access pattern, available node capacity, and subsequent scheduling.
- A split cannot distribute the load of a single hot key across multiple Regions.
- Queries that access both resulting Regions can generate additional network requests and coordination overhead, potentially increasing query latency.
- The CPU-based fallback uses CPU usage in the local read thread pool as a signal. It does not account for CPU usage on remote coprocessor workers or evaluate CPU usage relative to each keyspace's CPU quota.
- A fallback split does not guarantee balanced load between the resulting Regions. Performance gains depend on the access pattern, available node capacity, and subsequent scheduling.

@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

  • Source mode: Auto
  • Repository: pingcap/docs
  • Branch: master
  • File: .coderabbit.yaml
  • Commit: 9c6e33b
  • Layers: Repository YAML
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 43c44969-0d43-4c03-84f7-9fa47f0554d5
Commits

Reviewing files that changed from the base of the PR and between 17ff04c and 52d73d0.

Files selected for processing: 1

  • configure-load-base-split.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.

Comment thread configure-load-base-split.md Resolved
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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants