Module org.elasticsearch.server
Interface BalancingWeights
public interface BalancingWeights
The cluster nodes and shards are partitioned into mutually disjoint partitions. Each partition
has its own
WeightFunction.-
Method Summary
Modifier and TypeMethodDescriptioncreateNodeSorters(BalancedShardsAllocator.ModelNode[] modelNodes, BalancedShardsAllocator.Balancer balancer) Create the node sorters for the clusterGet the weight function for the partition to which this node belongsGet the weight function for the partition to which this shard belongs
-
Method Details
-
weightFunctionForShard
Get the weight function for the partition to which this shard belongs- Parameters:
shard- The shard- Returns:
- The weight function that applies to the partition that shard belongs to
-
weightFunctionForNode
Get the weight function for the partition to which this node belongs- Parameters:
node- The node- Returns:
- The weight function that applies to the partition that node belongs to
-
createNodeSorters
NodeSorters createNodeSorters(BalancedShardsAllocator.ModelNode[] modelNodes, BalancedShardsAllocator.Balancer balancer) Create the node sorters for the cluster- Parameters:
modelNodes- The full set of cluster nodesbalancer- The balancer- Returns:
- a
NodeSortersinstance
-