You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the split table(regions) in tidb is constructed by following 2 steps:
Notify tikv to split regions
Notify pd to scatter regions
But this will let the time cost for the whole splitting table become unstable and rather time-consuming.
So we want to split and scatter regions in pd directly, that means I should add new method : SplitAndScatterRegions()
Tidb can directly send a splitAndScatterRegions instruction to PD, and deliver PD to split and scatter without sending two requests (split first and then scatter)
Description
Currently, the split table(regions) in tidb is constructed by following 2 steps:
But this will let the time cost for the whole splitting table become unstable and rather time-consuming.
So we want to split and scatter regions in pd directly, that means I should add new method : SplitAndScatterRegions()
Tidb can directly send a splitAndScatterRegions instruction to PD, and deliver PD to split and scatter without sending two requests (split first and then scatter)
Tasks
Discussion PR: Enhance Split Table Stability and Usability tikv/pd#4095
Detail design : docs: add the design of Enhance Split Table Stability and Usability #29036
kvproto : Add splitAndScatterRegions method in pdpb.proto add splitAndScatterRegions in pdpb.proto kvproto#826
PD : Implement splitAndScatterRegions in grpc_service, client/client.go grpc-service: Add_split_and_scatter_region tikv/pd#4333
client-go: Add SplitAndScatterRegions in tikv/split-regions.go add splitAndScatterRegions in split_region.go tikv/client-go#343
tidb : Use SplitAndScatterRegions in executor/split.go executor: use splitAndScatterRegions #28989
Mentor
Recommended Skills
The text was updated successfully, but these errors were encountered: