requirements.asciidoc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[ccr-requirements]]
  4. === Requirements for leader indices
  5. beta[]
  6. Cross-cluster replication works by replaying the history of individual write
  7. operations that were performed on the shards of the leader index. This means that the
  8. history of these operations needs to be retained on the leader shards so that
  9. they can be pulled by the follower shard tasks. The underlying mechanism used to
  10. retain these operations is _soft deletes_. A soft delete occurs whenever an
  11. existing document is deleted or updated. By retaining these soft deletes up to
  12. configurable limits, the history of operations can be retained on the leader
  13. shards and made available to the follower shard tasks as it replays the history
  14. of operations.
  15. Soft deletes must be enabled for indices that you want to use as leader
  16. indices. Enabling soft deletes requires the addition of some index settings at
  17. index creation time. You must add these settings to your create index
  18. requests or to the index templates that you use to manage the creation of new
  19. indices.
  20. IMPORTANT: This means that {ccr} can not be used on existing indices. If you have
  21. existing data that you want to replicate from another cluster, you must
  22. {ref}/docs-reindex.html[reindex] your data into a new index with soft deletes
  23. enabled.
  24. [float]
  25. [[ccr-overview-soft-deletes]]
  26. ==== Soft delete settings
  27. `index.soft_deletes.enabled`::
  28. Whether or not soft deletes are enabled on the index. Soft deletes can only be
  29. configured at index creation and only on indices created on or after 6.5.0. The
  30. default value is `false`.
  31. `index.soft_deletes.retention.operations`::
  32. The number of soft deletes to retain. Soft deletes are collected during merges
  33. on the underlying Lucene index yet retained up to the number of operations
  34. configured by this setting. The default value is `0`.
  35. For more information about index settings, see {ref}/index-modules.html[Index modules].