Do close indices consume memory?


(Animageofmine) #1

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!


(Aaron Mildenstein) #2

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.


(Animageofmine) #3

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.


(Aaron Mildenstein) #4

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.


(Animageofmine) #5

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?

(system) #6

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