recovery.asciidoc 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. [[recovery]]
  2. === Indices Recovery
  3. <<cat-recovery,Peer recovery>> is the process used to build a new copy of a
  4. shard on a node by copying data from the primary. {es} uses this peer recovery
  5. process to rebuild shard copies that were lost if a node has failed, and uses
  6. the same process when migrating a shard copy between nodes to rebalance the
  7. cluster or to honor any changes to the <<modules-cluster,shard allocation
  8. settings>>.
  9. The following _expert_ setting can be set to manage the resources consumed by
  10. peer recoveries:
  11. `indices.recovery.max_bytes_per_sec`::
  12. Limits the total inbound and outbound peer recovery traffic on each node.
  13. Since this limit applies on each node, but there may be many nodes
  14. performing peer recoveries concurrently, the total amount of peer recovery
  15. traffic within a cluster may be much higher than this limit. If you set
  16. this limit too high then there is a risk that ongoing peer recoveries will
  17. consume an excess of bandwidth (or other resources) which could destabilize
  18. the cluster. Defaults to `40mb`.
  19. `indices.recovery.max_concurrent_file_chunks`::
  20. Controls the number of file chunk requests that can be sent in parallel per recovery.
  21. As multiple recoveries are already running in parallel (controlled by
  22. cluster.routing.allocation.node_concurrent_recoveries), increasing this expert-level
  23. setting might only help in situations where peer recovery of a single shard is not
  24. reaching the total inbound and outbound peer recovery traffic as configured by
  25. indices.recovery.max_bytes_per_sec, but is CPU-bound instead, typically when using
  26. transport-level security or compression. Defaults to `2`.
  27. This setting can be dynamically updated on a live cluster with the
  28. <<cluster-update-settings,cluster-update-settings>> API.