public class SnapshotInProgressAllocationDecider extends AllocationDecider
AllocationDecider prevents shards that
are currently been snapshotted to be moved to other nodes.| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
CLUSTER_ROUTING_ALLOCATION_SNAPSHOT_RELOCATION_ENABLED
Disables relocation of shards that are currently being snapshotted.
|
static String |
NAME |
deprecationLogger, logger, settings| コンストラクタと説明 |
|---|
SnapshotInProgressAllocationDecider()
Creates a new
SnapshotInProgressAllocationDecider instance |
SnapshotInProgressAllocationDecider(Settings settings)
Creates a new
SnapshotInProgressAllocationDecider instance from given settings |
SnapshotInProgressAllocationDecider(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. |
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, canRebalance, canRemainlogDeprecatedSetting, logRemovedSetting, nodeNamepublic SnapshotInProgressAllocationDecider()
SnapshotInProgressAllocationDecider instancepublic SnapshotInProgressAllocationDecider(Settings settings)
SnapshotInProgressAllocationDecider instance from given settingssettings - Settings to use@Inject public SnapshotInProgressAllocationDecider(Settings settings, NodeSettingsService nodeSettingsService)
public Decision canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)
Decision whether the given shard routing can be
re-balanced to the given allocation. The default is
Decision.ALWAYS.canRebalance クラス内 AllocationDeciderpublic Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation)
Decision whether the given shard routing can be
allocated on the given node. The default is Decision.ALWAYS.canAllocate クラス内 AllocationDeciderCopyright © 2009–2016. All rights reserved.