Class RebalanceOnlyWhenActiveAllocationDecider
java.lang.Object
org.opensearch.cluster.routing.allocation.decider.AllocationDecider
org.opensearch.cluster.routing.allocation.decider.RebalanceOnlyWhenActiveAllocationDecider
public class RebalanceOnlyWhenActiveAllocationDecider extends AllocationDecider
Only allow rebalancing when all shards are active within the shard replication group.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
-
Constructor Summary
Constructors Constructor Description RebalanceOnlyWhenActiveAllocationDecider()
-
Method Summary
Modifier and Type Method Description Decision
canRebalance(ShardRouting shardRouting, RoutingAllocation allocation)
Returns aDecision
whether the given shard routing can be re-balanced to the given allocation.Methods inherited from class org.opensearch.cluster.routing.allocation.decider.AllocationDecider
canAllocate, canAllocate, canAllocate, canAllocateAnyShardToNode, canForceAllocatePrimary, canMoveAnyShard, canMoveAway, canRebalance, canRemain, shouldAutoExpandToNode
-
Field Details
-
NAME
public static final java.lang.String 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
-