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 and Description |
---|---|
static Setting<java.lang.Integer> |
CLUSTER_ROUTING_ALLOCATION_CLUSTER_CONCURRENT_REBALANCE_SETTING |
static java.lang.String |
NAME |
deprecationLogger, logger, settings
Constructor and Description |
---|
ConcurrentRebalanceAllocationDecider(Settings settings,
ClusterSettings clusterSettings) |
Modifier and Type | Method and Description |
---|---|
Decision |
canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation)
Returns a
Decision whether the given shard routing can be
re-balanced to the given allocation. |
canAllocate, canAllocate, canAllocate, canAllocate, canRebalance, canRemain
logDeprecatedSetting, logRemovedSetting, nodeName
public static final java.lang.String NAME
public static final Setting<java.lang.Integer> CLUSTER_ROUTING_ALLOCATION_CLUSTER_CONCURRENT_REBALANCE_SETTING
@Inject public ConcurrentRebalanceAllocationDecider(Settings settings, ClusterSettings clusterSettings)
public Decision canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)
AllocationDecider
Decision
whether the given shard routing can be
re-balanced to the given allocation. The default is
Decision.ALWAYS
.canRebalance
in class AllocationDecider