mirror of https://github.com/tikv/client-rust.git
reduce regions
Signed-off-by: Ping Yu <yuping@pingcap.com>
This commit is contained in:
parent
da68a8ed87
commit
830dc67aa8
|
@ -1,6 +1,5 @@
|
||||||
[coprocessor]
|
[coprocessor]
|
||||||
region-max-keys = 45
|
region-split-keys = 150
|
||||||
region-split-keys = 30
|
|
||||||
batch-split-limit = 100
|
batch-split-limit = 100
|
||||||
|
|
||||||
[raftstore]
|
[raftstore]
|
||||||
|
|
|
@ -56,8 +56,8 @@ pub async fn init() -> Result<()> {
|
||||||
.take(count as usize - 1)
|
.take(count as usize - 1)
|
||||||
.map(|x| x.to_be_bytes().to_vec());
|
.map(|x| x.to_be_bytes().to_vec());
|
||||||
|
|
||||||
// about 43 regions with above keys.
|
// 10 regions is enough for most tests
|
||||||
ensure_region_split(keys_1.chain(keys_2), 40).await?;
|
ensure_region_split(keys_1.chain(keys_2), 10).await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
clear_tikv().await;
|
clear_tikv().await;
|
||||||
|
|
Loading…
Reference in New Issue