Homogeneous distribution of primary shards

Good morning,

I have a cluster with 15 nodes. When one of the nodes goes down, and restart
it again, we have seen that sometimes runs out of primary shards. Is there
any parameter to ensure that all primary shards are distributed evenly across
the cluster?

Regards and thanks in advance

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4dd8cd15-357c-423d-962c-b2fff57b1eab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

If you have 1 or more replicas, then when a node goes down that contains
primary shards, one of the existing replica shards should get promoted to a
primary shard.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6d497c13-152d-476e-92c2-14f937f9e174%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Our problem is not that no other nodes are not promoted to primary when the
node is down, Our problem is that when the node is down and after is up,
sometimes the node is out of primary shards. This problem cause that the
swing of charge is not swing across this node. we need that all nodes
contain the same number of primary shards so that the load swings to all
nodes.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9d675854-340b-4787-854a-958af5e98d73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sounds like you just need to give ES some time to rebalance.

Otherwise look at this, maybe you can adapt it to suit -

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 1 April 2014 19:10, Pedro Plaza García pedrito1987@gmail.com wrote:

Our problem is not that no other nodes are not promoted to primary when
the node is down, Our problem is that when the node is down and after is
up, sometimes the node is out of primary shards. This problem cause that
the swing of charge is not swing across this node. we need that all nodes
contain the same number of primary shards so that the load swings to all
nodes.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/9d675854-340b-4787-854a-958af5e98d73%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/9d675854-340b-4787-854a-958af5e98d73%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEM624Ysi3p10m8%3Dsce4pu_X96qWomE%2BccA3950spby1QTyEVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.