generateOptimalRegionReplicasDistribution
public org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet generateOptimalRegionReplicasDistribution(java.util.Map<java.lang.Integer,org.apache.iotdb.common.rpc.thrift.TDataNodeConfiguration> availableDataNodeMap,
java.util.Map<java.lang.Integer,java.lang.Long> freeDiskSpaceMap,
java.util.List<org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet> allocatedRegionGroups,
int replicationFactor,
org.apache.iotdb.common.rpc.thrift.TConsensusGroupId consensusGroupId)
Generate an optimal RegionReplicas' distribution for a new RegionGroup
- 指定者:
generateOptimalRegionReplicasDistribution 在接口中 IRegionGroupAllocator
- 参数:
availableDataNodeMap - DataNodes that can be used for allocation
freeDiskSpaceMap - The free disk space of the DataNodes
allocatedRegionGroups - Allocated RegionGroups
replicationFactor - Replication factor of TRegionReplicaSet
consensusGroupId - TConsensusGroupId of result TRegionReplicaSet
- 返回:
- The optimal TRegionReplicaSet derived by the specified algorithm