Hi, I am using the version of Es is 5.6.8. Recently ,I have met a question that I want to use api to delete snapshot to reduce disk usage , but when I deleted some of snapshots ,there was no change of my disk , what can I do to reduce the disk ?
It basically means that snapshots you deleted were referring segments that are still used by other snapshots.
Hello @dadoonet
Thank you for your reply , I want to reduce my disk usage,
How can I delete the snapshots to reduce the disk ?
If you keep deleting more snapshots, you will eventually remove all of the snapshots that used those segments, and the segments will be removed and free up the disk space.
However, depending on your index & snapshot configuration you might need to remove very recent snapshots in order to achieve the reduction in disk space that you are after.
As an extreme example, if you have an index that is never written to, and you snapshot it every day, then each of those snapshots will refer to the same segement file.
If you delete a single snapshot, then it will recover a very small amount of disk space (cluster state, and metadata about the snapshot), but you would have to remove every single snapshot before the segment file was deleted.
Without knowing anything about your data, your merge policies, or you snapshot configuration we cannot tell you how many snapshots you would need to delete before the segment files would be removed.
Hello @TimV, It's very kind of you to reply my question.
I know how to do it.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.