reduce regions

Signed-off-by: Ping Yu <yuping@pingcap.com>
This commit is contained in:
Ping Yu 2025-03-13 20:35:31 +08:00
parent da68a8ed87
commit 830dc67aa8
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,5 @@
[coprocessor]
region-max-keys = 45
region-split-keys = 30
region-split-keys = 150
batch-split-limit = 100
[raftstore]

View File

@ -56,8 +56,8 @@ pub async fn init() -> Result<()> {
.take(count as usize - 1)
.map(|x| x.to_be_bytes().to_vec());
// about 43 regions with above keys.
ensure_region_split(keys_1.chain(keys_2), 40).await?;
// 10 regions is enough for most tests
ensure_region_split(keys_1.chain(keys_2), 10).await?;
}
clear_tikv().await;