cache.asciidoc 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. [[index-modules-cache]]
  2. == Cache
  3. There are different caching inner modules associated with an index. They
  4. include `filter` and others.
  5. [float]
  6. [[filter]]
  7. === Filter Cache
  8. The filter cache is responsible for caching the results of filters (used
  9. in the query). The default implementation of a filter cache (and the one
  10. recommended to use in almost all cases) is the `node` filter cache type.
  11. [float]
  12. [[node-filter]]
  13. ==== Node Filter Cache
  14. The `node` filter cache may be configured to use either a percentage of
  15. the total memory allocated to the process or a specific amount of
  16. memory. All shards present on a node share a single node cache (thats
  17. why its called `node`). The cache implements an LRU eviction policy:
  18. when a cache becomes full, the least recently used data is evicted to
  19. make way for new data.
  20. The setting that allows one to control the memory size for the filter
  21. cache is `indices.cache.filter.size`, which defaults to `10%`. *Note*,
  22. this is *not* an index level setting but a node level setting (can be
  23. configured in the node configuration).
  24. `indices.cache.filter.size` can accept either a percentage value, like
  25. `30%`, or an exact value, like `512mb`.