recovery.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [[recovery]]
  2. === Indices Recovery
  3. Peer recovery syncs data from a primary shard to a new or
  4. existing shard copy.
  5. Peer recovery automatically occurs when {es}:
  6. * Recreates a shard lost during node failure
  7. * Relocates a shard to another node due to a cluster rebalance or changes to the
  8. <<modules-cluster, shard allocation settings>>
  9. You can view a list of in-progress and completed recoveries using the
  10. <<cat-recovery, cat recovery API>>.
  11. [float]
  12. ==== Peer recovery settings
  13. `indices.recovery.max_bytes_per_sec` (<<cluster-update-settings,Dynamic>>)::
  14. Limits total inbound and outbound recovery traffic for each node.
  15. Defaults to `40mb`.
  16. +
  17. This limit applies to nodes only. If multiple nodes in a cluster perform
  18. recoveries at the same time, the cluster's total recovery traffic may exceed
  19. this limit.
  20. +
  21. If this limit is too high, ongoing recoveries may consume an excess
  22. of bandwidth and other resources, which can destabilize the cluster.
  23. [float]
  24. ==== Expert peer recovery settings
  25. You can use the following _expert_ setting to manage resources for peer
  26. recoveries.
  27. `indices.recovery.max_concurrent_file_chunks` (<<cluster-update-settings,Dynamic>>, Expert)::
  28. Number of file chunk requests sent in parallel for each recovery. Defaults to
  29. `2`.
  30. +
  31. You can increase the value of this setting when the recovery of a single shard
  32. is not reaching the traffic limit set by `indices.recovery.max_bytes_per_sec`.