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
kvserver: start meta1 and meta2 as two separate ranges at bootstrap
Previously, we used to start meta1 and meta2 in one range at bootstrap,
and rely on load-based splitting to split them if needed. However, in
some cases, load-based splitting doesn't work when it decides to split a
point in meta1 (meta1 is not allowed to split).
This commit changes that by starting meta1 and meta2 as two separate
ranges at bootstrap. This way, if meta2 range needs to split more, it
can split because it won't collide with meta1.
In order to ensure that we get the descriptors correct, I started a
cluster (when meta1 and meta2 were on the same range), and manually
split them and captured the descriptors:
```
[1] Meta Key: /Meta1/""
Range r1:
StartKey: /Min
EndKey: /Meta2/""
Replicas: (n1,s1):1
Generation: 1
[2] Meta Key: /Meta1/Max
Range r79:
StartKey: /Meta2/""
EndKey: /System/NodeLiveness
Replicas: (n1,s1):1
Generation: 1
[3] Meta Key: /Meta2/System/NodeLiveness
Range r79:
StartKey: /Meta2/""
EndKey: /System/NodeLiveness
Replicas: (n1,s1):1
Generation: 1
[4] Meta Key: /Meta2/System/NodeLivenessMax
Range r2:
StartKey: /System/NodeLiveness
EndKey: /System/NodeLivenessMax
Replicas: (n1,s1):1
Generation: 0
```
After this commit, the first few ranges are bootstrapped with
the following descriptors:
```
[1] Meta Key: /Meta1/""
Range r1:
StartKey: /Min
EndKey: /Meta2/""
Replicas: (n1,s1):1
Generation: 0
[2] Meta Key: /Meta1/Max
Range r2:
StartKey: /Meta2/""
EndKey: /System/NodeLiveness
Replicas: (n1,s1):1
Generation: 0
[3] Meta Key: /Meta2/System/NodeLiveness
Range r2:
StartKey: /Meta2/""
EndKey: /System/NodeLiveness
Replicas: (n1,s1):1
Generation: 0
[4] Meta Key: /Meta2/System/NodeLivenessMax
Range r3:
StartKey: /System/NodeLiveness
EndKey: /System/NodeLivenessMax
Replicas: (n1,s1):1
Generation: 0
```
Fixes: #119421
Release note: None
0 commit comments