requirements.asciidoc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[ccr-requirements]]
  4. === Requirements for leader indices
  5. {ccr-cap} works by replaying the history of individual write
  6. operations that were performed on the shards of the leader index. This means that the
  7. history of these operations needs to be retained on the leader shards so that
  8. they can be pulled by the follower shard tasks. The underlying mechanism used to
  9. retain these operations is _soft deletes_. A soft delete occurs whenever an
  10. existing document is deleted or updated. By retaining these soft deletes up to
  11. configurable limits, the history of operations can be retained on the leader
  12. shards and made available to the follower shard tasks as it replays the history
  13. of operations.
  14. Soft deletes must be enabled for indices that you want to use as leader
  15. indices. Soft deletes are enabled by default on new indices created on
  16. or after {es} 7.0.0.
  17. IMPORTANT: This means that {ccr} can not be used on existing indices. If you have
  18. existing data that you want to replicate from another cluster, you must
  19. {ref}/docs-reindex.html[reindex] your data into a new index with soft deletes
  20. enabled.
  21. [[ccr-overview-soft-deletes]]
  22. ==== Soft delete settings
  23. `index.soft_deletes.enabled`::
  24. Whether or not soft deletes are enabled on the index. Soft deletes can only be
  25. configured at index creation and only on indices created on or after 6.5.0. The
  26. default value is `true`.
  27. `index.soft_deletes.retention_lease.period`::
  28. The maximum period to retain a shard history retention lease before it is considered
  29. expired. Shard history retention leases ensure that soft deletes are retained during
  30. merges on the Lucene index. If a soft delete is merged away before it can be replicated
  31. to a follower the following process will fail due to incomplete history on the leader.
  32. The default value is `12h`.
  33. For more information about index settings, see {ref}/index-modules.html[Index modules].