ilm-overview.asciidoc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[overview-index-lifecycle-management]]
  4. == {ilm-init} overview
  5. ++++
  6. <titleabbrev>Overview</titleabbrev>
  7. ++++
  8. You can create and apply {ilm-cap} ({ilm-init}) policies to automatically manage your indices
  9. according to your performance, resiliency, and retention requirements.
  10. Index lifecycle policies can trigger actions such as:
  11. * **Rollover**:
  12. include::../glossary.asciidoc[tag=rollover-def-short]
  13. * **Shrink**:
  14. include::../glossary.asciidoc[tag=shrink-def-short]
  15. * **Force merge**:
  16. include::../glossary.asciidoc[tag=force-merge-def-short]
  17. * **Freeze**:
  18. include::../glossary.asciidoc[tag=freeze-def-short]
  19. * **Delete**: Permanently remove an index, including all of its data and metadata.
  20. {ilm-init} makes it easier to manage indices in hot-warm-cold architectures,
  21. which are common when you're working with time-series data such as logs and metrics.
  22. You can specify:
  23. * The maximum shard size, number of documents, or age at which you want to roll over to a new index.
  24. * The point at which the index is no longer being updated and the number of
  25. primary shards can be reduced.
  26. * When to force a merge to permanently remove documents marked for deletion.
  27. * The point at which the index can be moved to less performant hardware.
  28. * The point at which the availability is not as critical and the number of
  29. replicas can be reduced.
  30. * When the index can be safely deleted.
  31. For example, if you are indexing metrics data from a fleet of ATMs into
  32. Elasticsearch, you might define a policy that says:
  33. . When the index reaches 50GB, roll over to a new index.
  34. . Move the old index into the warm stage, mark it read only, and shrink it down
  35. to a single shard.
  36. . After 7 days, move the index into the cold stage and move it to less expensive
  37. hardware.
  38. . Delete the index once the required 30 day retention period is reached.
  39. [IMPORTANT]
  40. ===========================
  41. To use {ilm-init}, all nodes in a cluster must run the same version.
  42. Although it might be possible to create and apply policies in a mixed-version cluster,
  43. there is no guarantee they will work as intended.
  44. Attempting to use a policy that contains actions that aren't
  45. supported on all nodes in a cluster will cause errors.
  46. ===========================