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?
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.
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?
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.
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.