remote-recovery.asciidoc 1.6 KB

1234567891011121314151617181920212223242526272829
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[remote-recovery]]
  4. === Remote recovery
  5. When you create a follower index, you cannot use it until it is fully initialized.
  6. The _remote recovery_ process builds a new copy of a shard on a follower node by
  7. copying data from the primary shard in the leader cluster. {es} uses this remote
  8. recovery process to bootstrap a follower index using the data from the leader index.
  9. This process provides the follower with a copy of the current state of the leader index,
  10. even if a complete history of changes is not available on the leader due to Lucene
  11. segment merging.
  12. Remote recovery is a network intensive process that transfers all of the Lucene
  13. segment files from the leader cluster to the follower cluster. The follower
  14. requests that a recovery session be initiated on the primary shard in the leader
  15. cluster. The follower then requests file chunks concurrently from the leader. By
  16. default, the process concurrently requests `5` large `1mb` file chunks. This default
  17. behavior is designed to support leader and follower clusters with high network latency
  18. between them.
  19. There are dynamic settings that you can use to rate-limit the transmitted data
  20. and manage the resources consumed by remote recoveries. See
  21. {ref}/ccr-settings.html[{ccr-cap} settings].
  22. You can obtain information about an in-progress remote recovery by using the
  23. {ref}/cat-recovery.html[recovery API] on the follower cluster. Remote recoveries
  24. are implemented using the {ref}/modules-snapshots.html[snapshot and restore] infrastructure. This means that on-going remote recoveries are labelled as type
  25. `snapshot` in the recovery API.