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, canRemain
logDeprecatedSetting, logRemovedSetting, nodeName
public 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)
AllocationDecider
Decision
whether the given shard routing can be
re-balanced to the given allocation. The default is
Decision.ALWAYS
.canRebalance
in class AllocationDecider
Copyright © 2009–2016. All rights reserved.