We are indexing streaming data into ES. I would like to know about the
ideal optimize strategy for our usecase. Also, we have required to delete
historical indices and index mapping. As we will delete the indices and
index mapping, the disk space will free only after running the optimize
command.
True if you delete mapping. Wrong if you delete index.
Delete the full index if you can. It is really really faster than deleting a mapping (means deleting all docs for this type). Basically, it's a rm -rf on each node which is extremly fast and frees your disk space immediatly.
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
We are indexing streaming data into ES. I would like to know about the ideal optimize strategy for our usecase. Also, we have required to delete historical indices and index mapping. As we will delete the indices and index mapping, the disk space will free only after running the optimize command.
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.