Class EnableAllocationDecider

java.lang.Object
org.elasticsearch.cluster.routing.allocation.decider.AllocationDecider
org.elasticsearch.cluster.routing.allocation.decider.EnableAllocationDecider

public class EnableAllocationDecider extends AllocationDecider
This allocation decider allows shard allocations / rebalancing via the cluster wide settings CLUSTER_ROUTING_ALLOCATION_ENABLE_SETTING / CLUSTER_ROUTING_REBALANCE_ENABLE_SETTING and the per index setting INDEX_ROUTING_ALLOCATION_ENABLE_SETTING / INDEX_ROUTING_REBALANCE_ENABLE_SETTING. The per index settings overrides the cluster wide setting.

Allocation settings can have the following values (non-casesensitive):

  • NONE - no shard allocation is allowed.
  • NEW_PRIMARIES - only primary shards of new indices are allowed to be allocated
  • PRIMARIES - only primary shards are allowed to be allocated
  • ALL - all shards are allowed to be allocated

Rebalancing settings can have the following values (non-casesensitive):

  • NONE - no shard rebalancing is allowed.
  • REPLICAS - only replica shards are allowed to be balanced
  • PRIMARIES - only primary shards are allowed to be balanced
  • ALL - all shards are allowed to be balanced
See Also:
EnableAllocationDecider.Rebalance, EnableAllocationDecider.Allocation