Shard Balancing

Hi,

I have a question regarding balance settings of Elasticsearch. I have 10
nodes and each index has 10 shards (5 primary, 5 replica). I want for
all nodes to have only 1 shard of an index. The documents explains some
settings here elasticsearch@googlegroups.com to do this, but I am not
sure what values to use. Is it a good idea to set 1.0 first three
settings? Is there any possible problems if I change these settings?

Best,

Umutcan

--
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/54B63E16.5050608%40gamegos.com.
For more options, visit https://groups.google.com/d/optout.

If you start 10 nodes and have 10 shards to allocate, elasticsearch will most likely do what you are expecting: 1 shard per node.
So you don’t really need to define any setting but just use elasticsearch defaults which are good most of the time.

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr https://twitter.com/elasticsearchfr | @scrutmydocs https://twitter.com/scrutmydocs

Le 14 janv. 2015 à 10:59, Umutcan umutcan@gamegos.com a écrit :

Hi,

I have a question regarding balance settings of Elasticsearch. I have 10 nodes and each index has 10 shards (5 primary, 5 replica). I want for all nodes to have only 1 shard of an index. The documents explains some settings here x-msg://4/elasticsearch@googlegroups.com to do this, but I am not sure what values to use. Is it a good idea to set 1.0 first three settings? Is there any possible problems if I change these settings?

Best,

Umutcan

--
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 mailto:elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/54B63E16.5050608%40gamegos.com https://groups.google.com/d/msgid/elasticsearch/54B63E16.5050608%40gamegos.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout 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/05274FAC-8C3B-41DA-A0B5-6F47A6589C45%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

You are right. Elasticsearch distribute shards to 10 nodes most of the
time. But there are exceptions and I want to guarantee it that every
time shards will be distributed even or at least decrease frequency of
these exceptions.

On 14-01-2015 13:10, David Pilato wrote:

If you start 10 nodes and have 10 shards to allocate, elasticsearch
will most likely do what you are expecting: 1 shard per node.
So you don’t really need to define any setting but just use
elasticsearch defaults which are good most of the time.

--
David Pilato | /Technical Advocate/ | Elasticsearch.com
http://Elasticsearch.com

@dadoonet https://twitter.com/dadoonet | @elasticsearchfr
https://twitter.com/elasticsearchfr |@scrutmydocs
https://twitter.com/scrutmydocs

Le 14 janv. 2015 à 10:59, Umutcan <umutcan@gamegos.com
mailto:umutcan@gamegos.com> a écrit :

Hi,

I have a question regarding balance settings of Elasticsearch. I have
10 nodes and each index has 10 shards (5 primary, 5 replica). I want
for all nodes to have only 1 shard of an index. The documents
explains some settings here
x-msg://4/elasticsearch@googlegroups.com to do this, but I am not
sure what values to use. Is it a good idea to set 1.0 first three
settings? Is there any possible problems if I change these settings?

Best,

Umutcan

--
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
mailto:elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/54B63E16.5050608%40gamegos.com
https://groups.google.com/d/msgid/elasticsearch/54B63E16.5050608%40gamegos.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
mailto:elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/05274FAC-8C3B-41DA-A0B5-6F47A6589C45%40pilato.fr
https://groups.google.com/d/msgid/elasticsearch/05274FAC-8C3B-41DA-A0B5-6F47A6589C45%40pilato.fr?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/54B660BB.9020202%40gamegos.com.
For more options, visit https://groups.google.com/d/optout.