fielddata.asciidoc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. [[modules-fielddata]]
  2. === Fielddata
  3. The field data cache is used mainly when sorting on or computing aggregations
  4. on a field. It loads all the field values to memory in order to provide fast
  5. document based access to those values. The field data cache can be
  6. expensive to build for a field, so its recommended to have enough memory
  7. to allocate it, and to keep it loaded.
  8. The amount of memory used for the field
  9. data cache can be controlled using `indices.fielddata.cache.size`. Note:
  10. reloading the field data which does not fit into your cache will be expensive
  11. and perform poorly.
  12. `indices.fielddata.cache.size`::
  13. The max size of the field data cache, eg `30%` of node heap space, or an
  14. absolute value, eg `12GB`. Defaults to unbounded. Also see
  15. <<fielddata-circuit-breaker>>.
  16. `indices.fielddata.cache.expire`::
  17. experimental[] A time based setting that expires field data after a
  18. certain time of inactivity. Defaults to `-1`. For example, can be set to
  19. `5m` for a 5 minute expiry.
  20. NOTE: These are static settings which must be configured on every data node in
  21. the cluster.
  22. [float]
  23. [[fielddata-monitoring]]
  24. ==== Monitoring field data
  25. You can monitor memory usage for field data as well as the field data circuit
  26. breaker using
  27. <<cluster-nodes-stats,Nodes Stats API>>