Facebooktwittergoogle_plusredditpinterestlinkedinmail

How to increase or decrease replica in Elasticsearch

You can change number of replicas in live Elasticsearch Cluster using Indices APIs update indices settings.

Update number of replicas for all indices:

curl -XPUT 'localhost:9200/_settings' -d '
    {
        "index" : {
            "number_of_replicas" : 2
        }
    }'

Update number of replicas for a single index or multiple indices:
Specify the comma separated index name to change replica for particular indices

curl -XPUT 'localhost:9200/index_name/_settings' -d '
    {
        "index" : {
            "number_of_replicas" : 2
        }
    }'
How to Increase or Decrease Replica in Elasticsearch Roopendra DevOPSElasticsearch,
How to increase or decrease replica in Elasticsearch You can change number of replicas in live Elasticsearch Cluster using Indices APIs update indices settings.Update number of replicas for all indices: curl -XPUT 'localhost:9200/_settings' -d ' { 'index' : { ...
<h2>How to increase or decrease replica in Elasticsearch</h2> You can change number of replicas in live Elasticsearch Cluster using Indices APIs update indices settings.<strong>Update number of replicas for all indices:</strong> <pre>curl -XPUT 'localhost:9200/_settings' -d ' { "index" : { "number_of_replicas" : 2 } }'</pre> <strong>Update number of replicas for a single index or multiple indices:</strong> Specify the comma separated index name to change replica for particular indices <pre>curl -XPUT 'localhost:9200/index_name/_settings' -d ' { "index" : { "number_of_replicas" : 2 } }'</pre>
(Visited 812 times, 42 visits today)
Facebooktwittergoogle_pluslinkedinrss