fielddata.asciidoc 1.1 KB

12345678910111213141516171819202122232425262728293031
  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. NOTE: These are static settings which must be configured on every data node in
  17. the cluster.
  18. [float]
  19. [[fielddata-monitoring]]
  20. ==== Monitoring field data
  21. You can monitor memory usage for field data as well as the field data circuit
  22. breaker using
  23. <<cluster-nodes-stats,Nodes Stats API>>