Question About Allocation of Primary and Replica Shards After Reboot

We recently restarted the six nodes in our ES cluster to perform the patch
for the Ghost vulnerability. We turned off reallocation, shut down the
individual nodes, then rebooted each node and turned reallocation back on.

We have 12 shards per index and one replica index. After the reboot of all
the nodes, we ended up with some nodes with three primary shards and one
replica index and some with three replicas and one primary shard.

Is there a way to prevent this mismatch in the distribution of our primary
and replica shards? Would like to have 2 primary shards and 2 replica shard
per node.

Also, is there a way to change a shard from a replica to a primary shard
without doing a relocation?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit