r/elasticsearch•
cd_vdms

Single node, default settings - are all indices being duplicated?

[Elastic 5.5.1]

I have inherited a single-node ELK stack. Shard settings are currently at default, so 5 primary shards and 1 replica.

Essentially this means I have five shards stored on the node, and yellow status on all indices because they cannot be replicated. I've worked out how to set replicas to 0 for existing indices, and I'm still working on how to change the index template to set it for future indices.

But my question is the "5 primary shards" bit. Does that mean all data is being duplicated five times on this one node? On a single-node cluster should I be looking to set indices to 1 primary shard as well?

Docs state that a shard is a "fully-functional and independent "index" that can be hosted on any node in the cluster", but I'm unclear on whether each index holds a part of the data or each holds the whole of it.

Posted Apr 11, 2018, 4:38 PM UTC

216
Loading comments…