Hi everyone,
I'm on Elasticsearch 8.6.2.
I wanted to reduce disk usage of my indices, and noticed that the _recovery_source
takes up quite some space.
I tried setting index.soft_deletes.enabled
to false
, but index creation wasn't allowed by elasticsearch with that.
I then tried setting index.soft_deletes.retention_lease.period
to "10s"
and called the forcemerge API after writing some documents. This didn't delete the _recovery_source. I restarted elasticsearch and retried forcemerge, but it made no difference.
I keep retrying the forcemerge API and after some random number of attempts, it does eventually delete the _recovery_source.
But is there a way to reliably make elasticsearch delete _recovery_source?
Thank you