0

In my ES cluster i have 19 nodes. Following is my cluster health.

{ "cluster_name" : "AVS", "status" : "green", "timed_out" : false, "number_of_nodes" : 19, "number_of_data_nodes" : 19, "active_primary_shards" : 23, "active_shards" : 125, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0 }

Currently all my indices are GREEN. Now for one of my indices, it's current settings are 10 shards and 5 replicas. But if I increases number of replicas from 5 to any number more than that, all of new replicated shards are being in state UNASSIGNED.

Considering number of nodes i have i am assuming i can have more than 5 replicas. What am i missing?

Dhaval
  • 1,046
  • 6
  • 10
  • could it be you have [forced_awareness](https://www.elastic.co/guide/en/elasticsearch/reference/current/allocation-awareness.html#forced-awareness) setting on ? – keety Aug 18 '16 at 17:16
  • i looked for settings there is no additional setting. – Dhaval Aug 18 '16 at 17:17
  • just to confirm you checked the [transient settings](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html#_precedence_of_settings) as well as config ? – keety Aug 18 '16 at 17:21
  • Do you have enough disk space to create those shards? – Andrei Stefan Aug 18 '16 at 22:50
  • @keety i ran curl -XGET localhost:9200/_cluster/settings and the returned value is this. {"persistent":{},"transient":{}} – Dhaval Aug 19 '16 at 03:05
  • @AndreiStefan, most of the disk space is free. less than 10% is used. – Dhaval Aug 19 '16 at 03:06
  • That doesn't account for the settings in the config file did you check the config too ? – keety Aug 19 '16 at 03:15
  • Do you mean config for the specific index? – Dhaval Aug 19 '16 at 03:17
  • no i meant the node config file usually `elasticsearch.yml` or you can check the [node settings](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/cluster-nodes-info.html) Example : `curl -XGET /_nodes/settings` – keety Aug 19 '16 at 03:29

0 Answers0