Skip to content

Commit

Permalink
split size
Browse files Browse the repository at this point in the history
Signed-off-by: bufferflies <[email protected]>
  • Loading branch information
bufferflies committed Sep 1, 2023
1 parent 7b79c6e commit a6c47ca
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions pkg/raft_cmdpb/raft_cmdpb.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions proto/raft_cmdpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ message SplitRequest {
// left region use new_region_id.
// Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
bool right_derive = 4 [deprecated=true];
// It should be false iff the region split by user key such as split table or create partion table etc, and new region's size should be zero.
// It should be true iff the region's load reach the threshold such as size、keys、load check etc, and new region's size will amortize the origin region.
// It should be false iff the region split by user key such as split table or create partion table etc,
// the new region's will not amortize the source region size, so it's region size is zero.
// It should be true iff the region's load reach the threshold such as size、keys、load check etc,
// the new region's size will amortize the origin region, so it's region size is half of the source region.
bool amortize_source_region_size = 5;
}

Expand All @@ -161,8 +163,10 @@ message BatchSplitRequest {
// If true, the last region derive the origin region_id,
// other regions use new ids.
bool right_derive = 2;
// It should be false iff the region split by user key such as split table or create partion table etc, and new region's size should be zero.
// It should be true iff the region's load reach the threshold such as size、keys、load check etc, and new region's size will amortize the origin region.
// It should be false iff the region split by user key such as split table or create partion table etc,
// the new region's will not amortize the source region size, so it's region size is zero.
// It should be true iff the region's load reach the threshold such as size、keys、load check etc,
// the new region's size will amortize the origin region, so it's region size is half of the source region.
bool amortize_source_region_size = 3;
}

Expand Down
Binary file removed protoc-3.15.8-linux-x86_64.zip
Binary file not shown.

0 comments on commit a6c47ca

Please sign in to comment.