Following the advice given here (thank you), in a few months, Ill be able to reduce the total shards in my Elastic Stack single node from aprox 5000 to 160. This will generally give it better performance and not overload the single node.
I do have worries still though What are some pros and cons to changing from daily to monthly indexes?
The client asks for a retention period of 180 days; If I merge them, the new index gets a creation date of today, not months ago, breaking the ILP of deleting after x days of index creation.
It's not related I believe. force merge is just merging segments within a shard of a given index. It does not merge "indices" if this is what you are looking for.
So the reindex API reads data from one or many indices using the Scroll API and then load them into a destination index using the Bulk API.
The destination index is like any normal index. I mean that you can create it and set index.lifecycle.origination_date setting IMO.
Then call the reindex API.
I should copy a ILM policy i use BUT set a index.lifecycle.origination_date.
Create a blank empty index using that new ILM policy
Copy from my old index (with the original ILM policy) to the new index (with the copied ILM policy) and you are saying that the index creation date on that new one should be the one I established?
It sounds intresting......not exactly sure if it works like that.
It would be great if you can try to reproduce this scenario in a test env and make sure it works as you'd expect.
And update this thread so the community will benefit from your experience
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.