接口 ILeaderBalancer

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      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.
    • 字段详细资料

      • GREEDY_POLICY

        static final java.lang.String GREEDY_POLICY
        另请参阅:
        常量字段值
      • MIN_COST_FLOW_POLICY

        static final java.lang.String MIN_COST_FLOW_POLICY
        另请参阅:
        常量字段值
    • 方法详细资料

      • 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