Class RegionBalancer
java.lang.Object
org.apache.iotdb.confignode.manager.load.balancer.RegionBalancer
The
RegionBalancer provides interfaces to generate optimal Region allocation and
migration plans-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenRegionGroupsAllocationPlan(Map<String, Integer> allotmentMap, TConsensusGroupType consensusGroupType) Generate a RegionGroups' allocation plan(CreateRegionGroupsPlan)
-
Constructor Details
-
RegionBalancer
-
-
Method Details
-
genRegionGroupsAllocationPlan
public CreateRegionGroupsPlan genRegionGroupsAllocationPlan(Map<String, Integer> allotmentMap, TConsensusGroupType consensusGroupType) throws NotEnoughDataNodeException, DatabaseNotExistsExceptionGenerate a RegionGroups' allocation plan(CreateRegionGroupsPlan)- Parameters:
allotmentMap- Map<DatabaseName, RegionGroup allotment>consensusGroupType-TConsensusGroupTypeof the new RegionGroups- Returns:
- CreateRegionGroupsPlan
- Throws:
NotEnoughDataNodeException- When the number of DataNodes is not enough for allocationDatabaseNotExistsException- When some StorageGroups don't exist
-