🌍 tjrobinson.net

Setting all indexes to have zero replicas with Elasticsearch

April 2017

To configure all indexes (including existing ones) to have zero replicas (useful if running on only one server, e.g. in development), execute this (syntax assumes you’re using Sense):

PUT /_settings

{

“index” : {

“number_of_replicas” : 0

}

}

Then check it’s worked by running this:

GET /_cat/indices?v