Use ILM to reduce the size of an existing index

I have an index that has grown too much and am trying to understand if the index lifecycle management can help me with this problem.

The index is approaching the size of 50 GB. From what I have read, I could use ilm to define a policy to create a new index after the 50 GB limit is reached.

But is there a way to split the existing index in smaller chunks using the ilm? Idealy, I would like to split it in 10 chunks with 5 GB each and then define a policy that creates new indexes after the 5 GB limit is reached.

If possible, could you please direct me to the relevant documentation? Thank you.

You can use the _split endpoint to do this for an existing index, but it does that on a shard level, not into different indices.
The only way to do this for an existing index would be to reindex.

Also 5GB per index is small, we'd recommend aiming for larger than that to maximise resources.

Thanks Marc!

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