Close Index Api warning in ES version 6.8

Hi,

There is a warning in Elasticsearch 6.8 version document about Close index api which states

To reduce the risk of data loss, avoid keeping closed indices in your cluster for long periods of time. When a node leaves your cluster, Elasticsearch does not rebuild the lost copies of the shards in any closed indices. As you replace the nodes in your cluster over time you will gradually lose the shard data for any closed indices

While this warning is not visible in 7.x version of Close Index API document.
Can you please let us know if the above issue of keeping closed indices for long time is solved in 7.x versions of Elasticsearch ?

Thanks,

.

From the 7.X documentation;

The data of opened/closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times.

Thanks for the reply.

So this means, there won't be any risk of data loss if a closed index is kept for a long time and a node leaves the cluster?

One more add on question to this, the number of shard copies of closed indices that are safely kept are same as the number of replicas configured for the index ?

Thanks,

That doesn't make sense to me sorry, can you rephrase it?

Hi,
As referenced, the document in 7.x says

The data of opened/closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times.

According to this, even the shards of closed indices are also replicated/copied. So wanted to know if the number of replica/copies of these closed indices remains same as index.number_of_replicas settings configured ?

Thanks,

I haven't tested it myself, but that would make sense.

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