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 threashold 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 String |
CLUSTER_ROUTING_ALLOCATION_CLUSTER_CONCURRENT_REBALANCE |
static String |
NAME |
deprecationLogger, logger, settings| Constructor and Description |
|---|
ConcurrentRebalanceAllocationDecider(Settings settings,
NodeSettingsService nodeSettingsService) |
| 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, canRemainlogDeprecatedSetting, logRemovedSetting, nodeNamepublic static final String NAME
public static final String CLUSTER_ROUTING_ALLOCATION_CLUSTER_CONCURRENT_REBALANCE
@Inject public ConcurrentRebalanceAllocationDecider(Settings settings, NodeSettingsService nodeSettingsService)
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 AllocationDeciderCopyright © 2009–2016. All rights reserved.