Skip to content

Instantly share code, notes, and snippets.

@jolestar
Created March 22, 2017 12:25
Show Gist options
  • Save jolestar/ad4fde140e903fc671aeb57aa47752fb to your computer and use it in GitHub Desktop.
Save jolestar/ad4fde140e903fc671aeb57aa47752fb to your computer and use it in GitHub Desktop.
elasticsearch recovery speed up
curl -s -XGET 'localhost:9200/_cat/recovery?v'
curl -XPUT localhost:9200/_cluster/settings -d '{
"persistent" : {
"cluster.routing.allocation.node_concurrent_recoveries" : "10",
"indices.recovery.max_bytes_per_sec": "250mb",
"indices.recovery.concurrent_streams": 10
}
}'
curl -s -XGET 'localhost:9200/_cat/recovery?v'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment