Hello -
I will be collecting data for every 10sec and hence my size of the particular index will be growing. Is there any way to limit the storage. I.e at any point of time i may require the latest 100 docs.count
Hello -
I will be collecting data for every 10sec and hence my size of the particular index will be growing. Is there any way to limit the storage. I.e at any point of time i may require the latest 100 docs.count
You can use the rollover API in elasticsearch to restrict an index to a particular size. Once that limit is crossed, a new index will be created along with the alias. You can than safely remove the older index.
https://www.elastic.co/guide/en/elasticsearch/reference/6.2/indices-rollover-index.html
I believe this is something which you were looking for.
Yes, it matches but i still have few concrens
any clue ??
There are 2 operations expected for ES, i.e. Read & Write.
For Read operations, in order to retrieve data from old + new index, you can move with either of the solutions.
For Write operation, you should be using the newly attached alias from the rollover operation. Hope this answers to your question.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.