Skip to content

Instantly share code, notes, and snippets.

@VerosK
Created August 3, 2014 20:03
Show Gist options
  • Save VerosK/a8d1d86a2ff92be9e52d to your computer and use it in GitHub Desktop.
Save VerosK/a8d1d86a2ff92be9e52d to your computer and use it in GitHub Desktop.
Elasticsearch - disable replicas on all indexes
$ curl -XPUT 'localhost:9200/*/_settings' -d '{"index": {"number_of_replicas":0}}'
{"acknowledged":true}
# see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment