Just a simple question which i can't find any answer.
If in an index, i use
- 3 primary shards
- 1 replica shards
Then i start 8 nodes.
Will only 6 nodes be busy ?
And so, what can be a better configuration ?
(i use 3 to 8 nodes depending on the situation)
4 primary / 2 replicas ?
Thanks in advance, and have a nice day !
If you started 8 nodes with a single index in that configuration, data would
only exist on six of the nodes.
When considering how to lay out your data, you should think about what kind of
node configuration you expect to have, for example, if you have a maximum of
eight data nodes, then you should try to have a minimum of eight shards in the
With your nodes, increasing the number of primary shards will increase the write
throughput, since the indexing operations are spread across more nodes.
On the other hand, increasing the number of replica shards will increase the
amount of nodes that can participate in read operations, assisting with read
In your case, doing 4 primary shards and 2 replicas (for a total of 12 shards)
is a fine solution, but of course, it depends on what sort of use case you are
using Elasticsearch for. I would recommend you start there (or something like 4
primary and 1 replica if you want to start even smaller).
When in doubt, the default settings (5 primaries and 1 replica) will go a very
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.