Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created April 14, 2022 18:23
Show Gist options
  • Select an option

  • Save denzhel/1814963dc850e7d1fce405855f9b6cc9 to your computer and use it in GitHub Desktop.

Select an option

Save denzhel/1814963dc850e7d1fce405855f9b6cc9 to your computer and use it in GitHub Desktop.
elasticsearch speed up recovery

To speed up recovery from a down time or restore from snapshot, use the following settings:

curl -XPUT -H 'Content-Type: application/json' 'http://localhost:9200/_cluster/settings' -d'
{
  "persistent": {
    "indices.recovery.max_bytes_per_sec": "1000mb",
    "cluster.routing.allocation.node_concurrent_recoveries": "10"
  }
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment