You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tidb-cloud: document CSE load-based split in 2609 - #23939
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.
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.
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
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.
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.
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
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:
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.
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
When enabled, CSE collects readrequest 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.
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.
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.
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.
- 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.
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
missing-translation-statusThis PR does not have translation status info.size/SDenotes a PR that changes 10-29 lines, ignoring generated files.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdandgit diff --checkpassed.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.
What is the related PR or file link(s)?
AI agent involvement
Do your changes match any of the following descriptions?
Summary by CodeRabbit