public class ConcurrentRebalanceAllocationDecider extends AllocationDecider
ClusterRebalanceAllocationDecider this
AllocationDecider controls 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 2
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 -1 the number of concurrent re-balance operations are unlimited.
| Modifier and Type | Field | Description |
|---|---|---|
static Setting<java.lang.Integer> |
CLUSTER_ROUTING_ALLOCATION_CLUSTER_CONCURRENT_REBALANCE_SETTING |
|
static java.lang.String |
NAME |
deprecationLogger, logger, settings| Constructor | Description |
|---|---|
ConcurrentRebalanceAllocationDecider(Settings settings,
ClusterSettings clusterSettings) |
| Modifier and Type | Method | Description |
|---|---|---|
Decision |
canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation) |
Returns a
Decision whether the given shard routing can be
re-balanced to the given allocation. |
logDeprecatedSetting, logRemovedSetting, nodeNamecanAllocate, canAllocate, canAllocate, canAllocate, canForceAllocatePrimary, canRebalance, canRemainpublic static final java.lang.String NAME
public static final Setting<java.lang.Integer> CLUSTER_ROUTING_ALLOCATION_CLUSTER_CONCURRENT_REBALANCE_SETTING
public ConcurrentRebalanceAllocationDecider(Settings settings, ClusterSettings clusterSettings)
public Decision canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)
AllocationDeciderDecision whether the given shard routing can be
re-balanced to the given allocation. The default is
Decision.ALWAYS.canRebalance in class AllocationDecider