public class SameShardAllocationDecider extends AllocationDecider
Note: this setting only applies if multiple nodes are started on the same host. Allocations of multiple copies of the same shard on the same node are not allowed independently of this setting.
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
NAME |
static String |
SAME_HOST_SETTING |
deprecationLogger, logger, settings| コンストラクタと説明 |
|---|
SameShardAllocationDecider(Settings settings) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 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.