Class RebalanceOnlyWhenActiveAllocationDecider
java.lang.Object
org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
org.elasticsearch.cluster.routing.allocation.decider.RebalanceOnlyWhenActiveAllocationDecider
Only allow rebalancing when all shards are active within the shard replication group.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncanRebalance(ShardRouting shardRouting, RoutingAllocation allocation)
Returns aDecision
whether the given shard routing can be re-balanced to the given allocation.Methods inherited from class org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
canAllocate, canAllocate, canAllocate, canForceAllocatePrimary, canRebalance, canRemain, shouldAutoExpandToNode
-
Field Details
-
NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
RebalanceOnlyWhenActiveAllocationDecider
public RebalanceOnlyWhenActiveAllocationDecider()
-
-
Method Details
-
canRebalance
Description copied from class:AllocationDecider
Returns aDecision
whether the given shard routing can be re-balanced to the given allocation. The default isDecision.ALWAYS
.- Overrides:
canRebalance
in classAllocationDecider
-