2015-06-22 17:49:45 -04:00
|
|
|
[[recovery]]
|
2020-06-01 09:44:32 -04:00
|
|
|
=== Index recovery settings
|
2015-06-22 17:49:45 -04:00
|
|
|
|
2020-04-02 13:14:34 -04:00
|
|
|
Peer recovery syncs data from a primary shard to a new or existing shard copy.
|
2019-04-26 10:23:30 -04:00
|
|
|
|
|
|
|
Peer recovery automatically occurs when {es}:
|
|
|
|
|
|
|
|
* Recreates a shard lost during node failure
|
|
|
|
* Relocates a shard to another node due to a cluster rebalance or changes to the
|
|
|
|
<<modules-cluster, shard allocation settings>>
|
|
|
|
|
|
|
|
You can view a list of in-progress and completed recoveries using the
|
|
|
|
<<cat-recovery, cat recovery API>>.
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Peer recovery settings
|
|
|
|
|
2020-04-02 13:14:34 -04:00
|
|
|
`indices.recovery.max_bytes_per_sec`::
|
|
|
|
(<<cluster-update-settings,Dynamic>>) Limits total inbound and outbound
|
|
|
|
recovery traffic for each node. Defaults to `40mb`.
|
2019-04-26 10:23:30 -04:00
|
|
|
+
|
2020-04-02 13:14:34 -04:00
|
|
|
This limit applies to each node separately. If multiple nodes in a cluster
|
|
|
|
perform recoveries at the same time, the cluster's total recovery traffic may
|
|
|
|
exceed this limit.
|
2019-04-26 10:23:30 -04:00
|
|
|
+
|
2020-04-02 13:14:34 -04:00
|
|
|
If this limit is too high, ongoing recoveries may consume an excess of bandwidth
|
|
|
|
and other resources, which can destabilize the cluster.
|
|
|
|
+
|
|
|
|
This is a dynamic setting, which means you can set it in each node's
|
|
|
|
`elasticsearch.yml` config file and you can update it dynamically using the
|
|
|
|
<<cluster-update-settings,cluster update settings API>>. If you set it
|
|
|
|
dynamically then the same limit applies on every node in the cluster. If you do
|
|
|
|
not set it dynamically then you can set a different limit on each node, which is
|
|
|
|
useful if some of your nodes have better bandwidth than others. For example, if
|
|
|
|
you are using <<overview-index-lifecycle-management,Index Lifecycle Management>>
|
|
|
|
then you may be able to give your hot nodes a higher recovery bandwidth limit
|
|
|
|
than your warm nodes.
|
2019-04-26 10:23:30 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Expert peer recovery settings
|
|
|
|
You can use the following _expert_ setting to manage resources for peer
|
|
|
|
recoveries.
|
|
|
|
|
2020-04-02 13:14:34 -04:00
|
|
|
`indices.recovery.max_concurrent_file_chunks`::
|
|
|
|
(<<cluster-update-settings,Dynamic>>, Expert) Number of file chunk requests
|
|
|
|
sent in parallel for each recovery. Defaults to `2`.
|
2019-04-26 10:23:30 -04:00
|
|
|
+
|
|
|
|
You can increase the value of this setting when the recovery of a single shard
|
2020-04-02 13:14:34 -04:00
|
|
|
is not reaching the traffic limit set by `indices.recovery.max_bytes_per_sec`.
|