How to set the shard and replica to tune the ES performance?


(張皓翔) #1

Hi everyone, my everyday documents is about 20 million records and one index per day.
I know the default setting is 5 shards 1 replica per index.
should I change the setting such as 3 shards and 2 replica, and does the setting performance be better or not?
How can I tune the shards and replica to improve my ES system performance and maintain the durability?
btw, I set 4 nodes in a cluster.

thank you in advance!


(Mark Walkom) #2

Have you tested it?


(張皓翔) #3

No.because I don't know what setting is the best.
I have no concept :frowning:

my index is about logstash-2018.01.31 logstash-2018.01.30 logstash-2018.01.29......
Is this setting can affect all the index include future index which is logstash-*?

PUT /logstash-*/_settings
{
    "index" : {
        "number_of_replicas" : 1
    }
}

(David Pilato) #4

May I suggest you look at the following resources about sizing:

https://www.elastic.co/elasticon/conf/2016/sf/quantitative-cluster-sizing


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.