Skip to content
Open
Changes from all commits
Commits
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
27 changes: 27 additions & 0 deletions configure-load-base-split.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ The Region split by Load Base Split will not be merged quickly. On the one hand,

## Usage

<CustomContent platform="tidb">

The Load Base Split feature is currently controlled by the following parameters:

- [`split.qps-threshold`](/tikv-configuration-file.md#qps-threshold): The QPS threshold at which a Region is identified as a hotspot. The default value is `3000` per second when [`region-split-size`](/tikv-configuration-file.md#region-split-size) is less than 4 GB; otherwise the default value is `7000`.
Expand Down Expand Up @@ -87,3 +89,28 @@ Accordingly, you can view the configuration by either of the following two metho
> **Note:**
>
> Starting from v4.0.0-rc.2, you can modify and view the configuration using SQL statements.

</CustomContent>

<CustomContent platform="tidb-cloud">

### Load Base Split in Cloud Storage Engine

Starting from Cloud.2609.1 for TiDB Cloud Essential and Premium, TiDB Cloud Storage Engine supports Load Base Split.

Currently, Load Base Split for Cloud Storage Engine is in private preview. During the private preview, Load Base Split is disabled by default. To request enablement for your instance, contact [TiDB Cloud Support](https://docs.pingcap.com/tidbcloud/tidb-cloud-support).
Comment thread
qiancai marked this conversation as resolved.
Resolved

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.


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.


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:
Comment on lines +107 to +109

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:


- 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.
Comment on lines +111 to +114

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.


</CustomContent>
Loading