EnableAllocationDecider.@Deprecated public class DisableAllocationDecider extends AllocationDecider
AllocationDecider prevents cluster-wide shard allocations. The
behavior of this AllocationDecider can be changed in real-time via
the cluster settings API. It respects the following settings:
true no new shard-allocation are allowed. Note: this setting is
only applied if the allocated shard is a primary and it has not been
allocated before the this setting was applied.true cluster wide allocations are disabledtrue cluster wide replica allocations are disabled while
primary shards can still be allocated
Note: all of the above settings might be ignored if the allocation happens on
a shard that explicitly ignores disabled allocations via
RoutingAllocation.ignoreDisable(). Which is set if allocation are
explicit.
| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_ROUTING_ALLOCATION_DISABLE_ALLOCATION
Deprecated.
|
static String |
CLUSTER_ROUTING_ALLOCATION_DISABLE_NEW_ALLOCATION
Deprecated.
|
static String |
CLUSTER_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION
Deprecated.
|
static String |
INDEX_ROUTING_ALLOCATION_DISABLE_ALLOCATION
Deprecated.
|
static String |
INDEX_ROUTING_ALLOCATION_DISABLE_NEW_ALLOCATION
Deprecated.
|
static String |
INDEX_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION
Deprecated.
|
static String |
NAME
Deprecated.
|
deprecationLogger, logger, settings| Constructor and Description |
|---|
DisableAllocationDecider(Settings settings,
NodeSettingsService nodeSettingsService)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Decision |
canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
Deprecated.
Returns a
Decision whether the given shard routing can be
allocated on the given node. |
canAllocate, canAllocate, canAllocate, canRebalance, canRebalance, canRemainlogDeprecatedSetting, logRemovedSetting, nodeNamepublic static final String NAME
public static final String CLUSTER_ROUTING_ALLOCATION_DISABLE_NEW_ALLOCATION
public static final String CLUSTER_ROUTING_ALLOCATION_DISABLE_ALLOCATION
public static final String CLUSTER_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION
public static final String INDEX_ROUTING_ALLOCATION_DISABLE_NEW_ALLOCATION
public static final String INDEX_ROUTING_ALLOCATION_DISABLE_ALLOCATION
public static final String INDEX_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION
@Inject public DisableAllocationDecider(Settings settings, NodeSettingsService nodeSettingsService)
public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)
AllocationDeciderDecision whether the given shard routing can be
allocated on the given node. The default is Decision.ALWAYS.canAllocate in class AllocationDeciderCopyright © 2009–2017. All rights reserved.