index-modules.asciidoc 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. [[index-modules]]
  2. = Index Modules
  3. [partintro]
  4. --
  5. Index Modules are modules created per index and control all aspects
  6. related to an index. Since those modules lifecycle are tied to an index,
  7. all the relevant modules settings can be provided when creating an index
  8. (and it is actually the recommended way to configure an index).
  9. [float]
  10. [[index-modules-settings]]
  11. == Index Settings
  12. There are specific index level settings that are not associated with any
  13. specific module. These include:
  14. [[index-compound-format]]`index.compound_format`::
  15. experimental[]
  16. Should the compound file format be used (boolean setting).
  17. The compound format was created to reduce the number of open
  18. file handles when using file based storage. However, by default it is set
  19. to `false` as the non-compound format gives better performance. It is important
  20. that OS is configured to give Elasticsearch ``enough'' file handles.
  21. See <<file-descriptors>>.
  22. +
  23. Alternatively, `compound_format` can be set to a number between `0` and
  24. `1`, where `0` means `false`, `1` means `true` and a number inbetween
  25. represents a percentage: if the merged segment is less than this
  26. percentage of the total index, then it is written in compound format,
  27. otherwise it is written in non-compound format.
  28. [[index-compound-on-flush]]`index.compound_on_flush`::
  29. experimental[]
  30. Should a new segment (create by indexing, not by merging) be written
  31. in compound format or non-compound format? Defaults to `true`.
  32. This is a dynamic setting.
  33. `index.refresh_interval`::
  34. A time setting controlling how often the
  35. refresh operation will be executed. Defaults to `1s`. Can be set to `-1`
  36. in order to disable it.
  37. `index.codec`::
  38. experimental[]
  39. The `default` value compresses stored data with LZ4 compression, but
  40. this can be set to `best_compression` for a higher compression ratio,
  41. at the expense of slower stored fields performance.
  42. `index.shard.check_on_startup`::
  43. experimental[]
  44. Should shard consistency be checked upon opening. When corruption is detected,
  45. it will prevent the shard from being opened.
  46. +
  47. When `checksum`, check for physical corruption.
  48. When `true`, check for both physical and logical corruption. This is much
  49. more expensive in terms of CPU and memory usage.
  50. When `fix`, check for both physical and logical corruption, and segments
  51. that were reported as corrupted will be automatically removed.
  52. Default value is `false`, which performs no checks.
  53. NOTE: Checking shards may take a lot of time on large indices.
  54. WARNING: Setting `index.shard.check_on_startup` to `fix` may result in data loss,
  55. use with extreme caution.
  56. --
  57. include::index-modules/analysis.asciidoc[]
  58. include::index-modules/allocation.asciidoc[]
  59. include::index-modules/slowlog.asciidoc[]
  60. include::index-modules/merge.asciidoc[]
  61. include::index-modules/store.asciidoc[]
  62. include::index-modules/mapper.asciidoc[]
  63. include::index-modules/translog.asciidoc[]
  64. include::index-modules/cache.asciidoc[]
  65. include::index-modules/query-cache.asciidoc[]
  66. include::index-modules/fielddata.asciidoc[]
  67. include::index-modules/similarity.asciidoc[]