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]
|
||||
region-max-keys = 45
|
||||
region-split-keys = 30
|
||||
region-split-keys = 150
|
||||
batch-split-limit = 100
|
||||
|
||||
[raftstore]
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue