public class ConcurrentRebalanceAllocationDecider extends AllocationDeciderSimilar to the
AllocationDecidercontrols the number of currently in-progress re-balance (relocation) operations and restricts node allocations if the configured threshold is reached. The default number of concurrent rebalance operations is set to
Re-balance operations can be controlled in real-time via the cluster update API using
cluster.routing.allocation.cluster_concurrent_rebalance. Iff this setting is set to
-1the number of concurrent re-balance operations are unlimited.
Fields Modifier and Type Field Description
Modifier and Type Method Description
canRebalance(RoutingAllocation allocation)Returns a
Decisionwhether the cluster can execute re-balanced operations at all.
canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)Returns a
Decisionwhether the given shard routing can be re-balanced to the given allocation.
Methods inherited from class org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
canAllocate, canAllocate, canAllocate, canAllocate, canForceAllocatePrimary, canRemain
public Decision canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)Description copied from class:
Decisionwhether the given shard routing can be re-balanced to the given allocation. The default is