Skip to content

Instantly share code, notes, and snippets.

@indygwyn
Forked from jolestar/es-recovery.sh
Created December 11, 2021 23:40
Show Gist options
  • Select an option

  • Save indygwyn/ee23b33a8dbdc32628218f53afa0acd2 to your computer and use it in GitHub Desktop.

Select an option

Save indygwyn/ee23b33a8dbdc32628218f53afa0acd2 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