public class ThrottlingAllocationDecider extends AllocationDecider
ThrottlingAllocationDecider controls the recovery process per node in
the cluster. It exposes two settings via the cluster update API that allow
changes in real-time:
If one of the above thresholds is exceeded per node this allocation decider
will return Decision.THROTTLE as a hit to upstream logic to throttle
the allocation process to prevent overloading nodes due to too many concurrent recovery
processes.
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
CLUSTER_ROUTING_ALLOCATION_CONCURRENT_RECOVERIES |
static String |
CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES |
static String |
CLUSTER_ROUTING_ALLOCATION_NODE_INITIAL_PRIMARIES_RECOVERIES |
static int |
DEFAULT_CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES |
static int |
DEFAULT_CLUSTER_ROUTING_ALLOCATION_NODE_INITIAL_PRIMARIES_RECOVERIES |
static String |
NAME |
deprecationLogger, logger, settings| コンストラクタと説明 |
|---|
ThrottlingAllocationDecider(Settings settings,
NodeSettingsService nodeSettingsService) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Decision |
canAllocate(RoutingNode node,
RoutingAllocation allocation)
Returns a
Decision whether the given node can allow any allocation at all at this state of the
RoutingAllocation. |
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, canRebalance, canRebalance, canRemainlogDeprecatedSetting, logRemovedSetting, nodeNamepublic static final String CLUSTER_ROUTING_ALLOCATION_NODE_INITIAL_PRIMARIES_RECOVERIES
public static final String CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES
public static final String CLUSTER_ROUTING_ALLOCATION_CONCURRENT_RECOVERIES
public static final int DEFAULT_CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES
public static final int DEFAULT_CLUSTER_ROUTING_ALLOCATION_NODE_INITIAL_PRIMARIES_RECOVERIES
@Inject public ThrottlingAllocationDecider(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 クラス内 AllocationDeciderpublic Decision canAllocate(RoutingNode node, RoutingAllocation allocation)
AllocationDeciderDecision whether the given node can allow any allocation at all at this state of the
RoutingAllocation. The default is Decision.ALWAYS.canAllocate クラス内 AllocationDeciderCopyright © 2009–2016. All rights reserved.