Repository navigation
tidb-cloud: document CSE load-based split in 2609 #23939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -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`. | ||||||||||||||||||
|
|
@@ -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). | ||||||||||||||||||
|
|
||||||||||||||||||
| 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. | ||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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: | ||||||||||||||||||
|
Comment on lines
+107
to
+109
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||||||||||||||||||
|
Comment on lines
+111
to
+114
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
|
|
||||||||||||||||||
| </CustomContent> | ||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.