Do close indices consume memory?

Quick and stupid questions. I didn't see that in the documentation:

  1. Once you close the index, does it still consume memory (e.g field data) ?
  2. How long would it take for the index to open back (assuming that it has to load index/field data again)?

Thanks!

No.

Loading will be fairly quick. Elasticsearch has to populate the metadata with all of the index information. Searches and other queries may be slower until cached.

Thanks so much for your quick reply. How long does it take to cache approximately ? Say, an index with 10M documents and 200 fields. I know it all depends on the type of fields, so an approximate answer based on your analysis/testing would be good enough for now.

Caching doesn't automatically happen. You have to employ warmers (queries that run in the background just to fill your filter caches), or wait for actual queries to do so.

Sounds like caching is lazy. Some documentation would be really useful to study the design.

  1. What does caching really do?
  2. What are warmers?
  3. What really happens when you close and reopen the index?

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