Class SameShardAllocationDecider

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

public class SameShardAllocationDecider extends AllocationDecider
An allocation decider that prevents multiple instances of the same shard to be allocated on the same node. The CLUSTER_ROUTING_ALLOCATION_SAME_HOST_SETTING setting allows to perform a check to prevent allocation of multiple instances of the same shard on a single host, based on host name and host address. Defaults to `false`, meaning that no check is performed by default.

Note: this setting only applies if multiple nodes are started on the same host. Allocations of multiple copies of the same shard on the same node are not allowed independently of this setting.