generateOptimalLeaderDistribution
java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,java.lang.Integer> generateOptimalLeaderDistribution(java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet> regionReplicaSetMap,
java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,java.lang.Integer> regionLeaderMap,
java.util.Set<java.lang.Integer> disabledDataNodeSet)
Generate an optimal leader distribution.
- 参数:
regionReplicaSetMap - All RegionGroups the cluster currently have
regionLeaderMap - The current leader of each RegionGroup
disabledDataNodeSet - The DataNodes that currently unable to work(can't place
RegionGroup-leader)
- 返回:
- Map, The optimal leader distribution