Module org.elasticsearch.server
Class NodeAllocationStatsAndWeightsCalculator
java.lang.Object
org.elasticsearch.cluster.routing.allocation.NodeAllocationStatsAndWeightsCalculator
Calculates the allocation weights and usage stats for each node: see
NodeAllocationStatsAndWeightsCalculator.NodeAllocationStatsAndWeight for details.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordNode shard allocation stats and the total node weight. -
Constructor Summary
ConstructorsConstructorDescriptionNodeAllocationStatsAndWeightsCalculator(WriteLoadForecaster writeLoadForecaster, BalancingWeightsFactory balancingWeightsFactory) -
Method Summary
Modifier and TypeMethodDescriptionnodesAllocationStatsAndWeights(Metadata metadata, RoutingNodes routingNodes, ClusterInfo clusterInfo, Runnable ensureNotCancelled, DesiredBalance desiredBalance) Returns a map of node IDs toNodeAllocationStatsAndWeightsCalculator.NodeAllocationStatsAndWeight.
-
Constructor Details
-
NodeAllocationStatsAndWeightsCalculator
public NodeAllocationStatsAndWeightsCalculator(WriteLoadForecaster writeLoadForecaster, BalancingWeightsFactory balancingWeightsFactory)
-
-
Method Details
-
nodesAllocationStatsAndWeights
public Map<String,NodeAllocationStatsAndWeightsCalculator.NodeAllocationStatsAndWeight> nodesAllocationStatsAndWeights(Metadata metadata, RoutingNodes routingNodes, ClusterInfo clusterInfo, Runnable ensureNotCancelled, @Nullable DesiredBalance desiredBalance) Returns a map of node IDs toNodeAllocationStatsAndWeightsCalculator.NodeAllocationStatsAndWeight.
-