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.
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
CLUSTER_ROUTING_ALLOCATION_DISABLE_ALLOCATION
非推奨です。
|
static String |
CLUSTER_ROUTING_ALLOCATION_DISABLE_NEW_ALLOCATION
非推奨です。
|
static String |
CLUSTER_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION
非推奨です。
|
static String |
INDEX_ROUTING_ALLOCATION_DISABLE_ALLOCATION
非推奨です。
|
static String |
INDEX_ROUTING_ALLOCATION_DISABLE_NEW_ALLOCATION
非推奨です。
|
static String |
INDEX_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION
非推奨です。
|
static String |
NAME
非推奨です。
|
deprecationLogger, logger, settings| コンストラクタと説明 |
|---|
DisableAllocationDecider(Settings settings,
NodeSettingsService nodeSettingsService)
非推奨です。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Decision |
canAllocate(ShardRouting shardRouting,
RoutingNode node,
RoutingAllocation allocation)
非推奨です。
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 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
@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 クラス内 AllocationDeciderCopyright © 2009–2016. All rights reserved.