Can I use ILM to switch index_code to DEFLATE after 40 days ?

Within 40 days, I plan to utilize LZ4 for fast compression and decompression - Hot Node.

After exceeding 40 days, switching to DEFLATE (high compression ratio) can effectively reduce storage space - Warm Node.

Can Index Lifecycle Management be used to change index_code to DEFLATE?

Yes, you can specify the index codec as part of a forcemerge action when transitioning to the warm phase. Only segments that are merged will get the new codec applied, so ideally set number of segments to 1. Ideally the index should be read-only after this point as you will have a single potentially large segment.

1 Like