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
false, but index creation wasn't allowed by elasticsearch with that.
I then tried setting
"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?