Deleting a Elasticsearch Snapshot

2k Views Asked by At

We have a elasticsearch cluster running on EKS, and we have configured a daily snapshot for the cluster onto S3. We have now a lot of data piled up on S3, and for cost optimisation we are planning of deleting any snapshots older than 2 weeks.

However since the snapshots are incremental, we are not sure whether deleting the older snapshots will corrupt the new ones or not.

So my query is can we safely delete the older snapshots from S3 using the DELETE Api from Elasticsearch without corrupting any new snapshots??

1

There are 1 best solutions below

0
On

Yes you can safely delete older snapshots from S3 using the DELETE Api from Elasticsearch without corrupting any new snapshots.

Elasticsearch make sure that it only delete those data from repository which are no longer referenced by any other existing snapshots .

Ref :https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-snapshots.html