Elasticsearch primary shards (re)location


(Georgi Ivanov) #1

Hi,
I have the following situation :
I have 8 node cluster.

Periodically some nodes are restarted, and their primary shards allocated
on other nodes.

After the node is back, it contains much less primary shards then the rest
of the nodes.
Now i have a situation, where one node holds many primary shards, while
other node hold only few .

For example i have a node with 20+ primary shards, and a node with 3
primary shards.

Is this a problem ?
What will happen when the node with many primary shards fails ?

Thanks

--
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/69bbaf9e-4713-477a-8e1c-fde89f941c69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Mark Walkom) #2

Do you have replicas? I'm guessing yes, and thus it's not a major concern,
as if the node with the primaries disappears then the secondary shards on
the other nodes will be promoted.
And as far as searching is concerned, a primary and a secondary as
considered the same.

You can tweak this behaviour with
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-cluster.html#allocation-awareness

Regards,
Mark Walkom

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

On 14 May 2014 00:47, Georgi Ivanov georgi.r.ivanov@gmail.com wrote:

Hi,
I have the following situation :
I have 8 node cluster.

Periodically some nodes are restarted, and their primary shards allocated
on other nodes.

After the node is back, it contains much less primary shards then the rest
of the nodes.
Now i have a situation, where one node holds many primary shards, while
other node hold only few .

For example i have a node with 20+ primary shards, and a node with 3
primary shards.

Is this a problem ?
What will happen when the node with many primary shards fails ?

Thanks

--
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/69bbaf9e-4713-477a-8e1c-fde89f941c69%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/69bbaf9e-4713-477a-8e1c-fde89f941c69%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/CAEM624ZOtNUg5O7BztrSsosV9_CjPmKmEniC80Yv5BNiBzGEpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3