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
153353: mmaprototype: allow rebalancing between stores on the same node r=sumeerbhola a=wenyihu6
Resolves: #153165
Release note: none
---
**asim: typo fix**
This commit fixes typo in comment and a clusterInfo region setup.
---
**mmaprototype: populate conf.NumVoters to conf.NumReplicas if 0**
Previously, MMA used the given span config directly. However, the comment on
config.NumVoters specifies that if it is set to zero, the voter replica count
should default to NumReplicas, which is usually handled by
SpanConfig.GetNumVoters().
---
**mmaprototype: allow rebalancing between stores on the same node**
Previously, when MMA constructed the candidate set, it excluded stores on nodes
that already had replicas, including the current node itself. However,
rebalancing replicas across different stores on the same node should be allowed.
This commit corrects that logic. Note that the store itself has already been
excluded earlier (see https://github.com/cockroachdb/cockroach/blob/da4a31068dc9f268d423aa4d5fd72b29c61942bc/pkg/kv/kvserver/allocator/mmaprototype/allocator_state.go#L614-L623).
Co-authored-by: wenyihu6 <[email protected]>
0 commit comments