org.elasticsearch.cluster.routing.allocation.decider
Class RebalanceOnlyWhenActiveAllocationDecider
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
org.elasticsearch.cluster.routing.allocation.decider.RebalanceOnlyWhenActiveAllocationDecider
public class RebalanceOnlyWhenActiveAllocationDecider
- extends AllocationDecider
Only allow rebalancing when all shards are active within the shard replication group.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RebalanceOnlyWhenActiveAllocationDecider
@Inject
public RebalanceOnlyWhenActiveAllocationDecider(Settings settings)
canRebalance
public boolean canRebalance(ShardRouting shardRouting,
RoutingAllocation allocation)
- Overrides:
canRebalance
in class AllocationDecider
Copyright © 2009-2012. All Rights Reserved.