recovery.asciidoc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [[recovery]]
  2. === Index recovery settings
  3. Peer recovery syncs data from a primary shard to a new or existing shard copy.
  4. Peer recovery automatically occurs when {es}:
  5. * Recreates a shard lost during node failure
  6. * Relocates a shard to another node due to a cluster rebalance or changes to the
  7. <<modules-cluster, shard allocation settings>>
  8. You can view a list of in-progress and completed recoveries using the
  9. <<cat-recovery, cat recovery API>>.
  10. [discrete]
  11. ==== Recovery settings
  12. `indices.recovery.max_bytes_per_sec`::
  13. (<<cluster-update-settings,Dynamic>>) Limits total inbound and outbound
  14. recovery traffic for each node. Applies to both peer recoveries as well
  15. as snapshot recoveries (i.e., restores from a snapshot). Defaults to `40mb`.
  16. +
  17. This limit applies to each node separately. If multiple nodes in a cluster
  18. perform recoveries at the same time, the cluster's total recovery traffic may
  19. exceed this limit.
  20. +
  21. If this limit is too high, ongoing recoveries may consume an excess of bandwidth
  22. and other resources, which can destabilize the cluster.
  23. +
  24. This is a dynamic setting, which means you can set it in each node's
  25. `elasticsearch.yml` config file and you can update it dynamically using the
  26. <<cluster-update-settings,cluster update settings API>>. If you set it
  27. dynamically then the same limit applies on every node in the cluster. If you do
  28. not set it dynamically then you can set a different limit on each node, which is
  29. useful if some of your nodes have better bandwidth than others. For example, if
  30. you are using <<overview-index-lifecycle-management,Index Lifecycle Management>>
  31. then you may be able to give your hot nodes a higher recovery bandwidth limit
  32. than your warm nodes.
  33. [discrete]
  34. ==== Expert peer recovery settings
  35. You can use the following _expert_ setting to manage resources for peer
  36. recoveries.
  37. `indices.recovery.max_concurrent_file_chunks`::
  38. (<<cluster-update-settings,Dynamic>>, Expert) Number of file chunk requests
  39. sent in parallel for each recovery. Defaults to `2`.
  40. +
  41. You can increase the value of this setting when the recovery of a single shard
  42. is not reaching the traffic limit set by `indices.recovery.max_bytes_per_sec`.
  43. `indices.recovery.max_concurrent_operations`::
  44. (<<cluster-update-settings,Dynamic>>, Expert) Number of operations sent
  45. in parallel for each recovery. Defaults to `1`.
  46. +
  47. Concurrently replaying operations during recovery can be very resource-intensive
  48. and may interfere with indexing, search, and other activities in your cluster.
  49. Do not increase this setting without carefully verifying that your cluster has
  50. the resources available to handle the extra load that will result.