public class ClusterRebalanceAllocationDecider extends AllocationDecider
AllocationDecider controls re-balancing operations based on the
cluster wide active shard state. This decided can not be configured in
real-time and should be pre-cluster start via
cluster.routing.allocation.allow_rebalance. This setting respects the following
values:
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
ClusterRebalanceAllocationDecider.ClusterRebalanceType
An enum representation for the configured re-balance type.
|
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static Validator |
ALLOCATION_ALLOW_REBALANCE_VALIDATOR |
static String |
CLUSTER_ROUTING_ALLOCATION_ALLOW_REBALANCE |
static String |
NAME |
deprecationLogger, logger, settings| コンストラクタと説明 |
|---|
ClusterRebalanceAllocationDecider(Settings settings,
NodeSettingsService nodeSettingsService) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Decision |
canRebalance(RoutingAllocation allocation)
Returns a
Decision whether the cluster can execute
re-balanced operations at all. |
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, canRemainlogDeprecatedSetting, logRemovedSetting, nodeNamepublic static final String CLUSTER_ROUTING_ALLOCATION_ALLOW_REBALANCE
public static final Validator ALLOCATION_ALLOW_REBALANCE_VALIDATOR
@Inject public ClusterRebalanceAllocationDecider(Settings settings, NodeSettingsService nodeSettingsService)
public Decision canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)
AllocationDeciderDecision whether the given shard routing can be
re-balanced to the given allocation. The default is
Decision.ALWAYS.canRebalance クラス内 AllocationDeciderpublic Decision canRebalance(RoutingAllocation allocation)
AllocationDeciderDecision whether the cluster can execute
re-balanced operations at all.
Decision.ALWAYS.canRebalance クラス内 AllocationDeciderCopyright © 2009–2016. All rights reserved.