Tuesday, November 5, 2019

How to increase Elasticsearch Shard recovery Speed

To Increase Shard recovery speed do this:


Increase node recovery speed


PUT http://es:9200/_cluster/settings

{
"persistent" : {
"indices.recovery.max_bytes_per_sec": "200mb",
"indices.recovery.max_concurrent_file_chunks": 5,
"cluster.routing.allocation.node_concurrent_recoveries" : 5
}
}


Links:

https://www.elastic.co/guide/en/elasticsearch/reference/current/shards-allocation.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/recovery.html