# Elasticsearch cluster status is Red with unassigned shards

**URL:** <https://discuss.elastic.co/t/elasticsearch-cluster-status-is-red-with-unassigned-shards/208726>\
**Category:** Elasticsearch\
**Created:** [November 20, 2019, 2:57pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-status-is-red-with-unassigned-shards/208726 "2019-11-20T14:57:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adityacs](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@adityacs](https://discuss.elastic.co/u/adityacs)\
**Post date:** [November 20, 2019, 2:57pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-status-is-red-with-unassigned-shards/208726/1 "2019-11-20T14:57:31Z")

</div>

Hi Team,

We use ES 6.4.3 and we see below cluster status

`{"cluster_name":"elasticsearch","status":"red","timed_out":false,"number_of_nodes":5,"number_of_data_nodes":2,"active_primary_shards":3150,"active_shards":3161,"relocating_shards":0,"initializing_shards":8,"unassigned_shards":4647,"delayed_unassigned_shards":0,"number_of_pending_tasks":8,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":45338,"active_shards_percent_as_number":40.44268167860798}`

And we see that "unsassigned\_shards" is getting reduced over time. However, it is taking too long time. How can we increase the speed of assigning shards?  
Will the cluster status turn Green once all unassigned shards are allocated?

---

<div class="post-metadata">

**Author:** ![nahiko2000](https://avatars.discourse-cdn.com/v4/letter/n/bc8723/32.png) [@nahiko2000](https://discuss.elastic.co/u/nahiko2000)\
**Post date:** [November 20, 2019, 4:18pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-status-is-red-with-unassigned-shards/208726/2 "2019-11-20T16:18:48Z")

</div>

Hi!

How did you get to that situation? Upgrading? Restarting? How did you do it?

Maybe this setting helps you:

> curl -XPUT localhost:9200/\_cluster/settings -d '{  
> "persistent" : {  
> "cluster.routing.allocation.node\_concurrent\_recoveries" : "1"  
> }  
> }'

The default value for that setting is '2'.

---

<div class="post-metadata">

**Author:** ![adityacs](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@adityacs](https://discuss.elastic.co/u/adityacs)\
**Post date:** [November 20, 2019, 4:33pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-status-is-red-with-unassigned-shards/208726/3 "2019-11-20T16:33:04Z")

</div>

Hi  
I got to this situation by restarting. How will `cluster.routing.allocation.node_concurrent_recoveries" : "1"` help me? It improves recovery speed?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 18, 2019, 4:33pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-status-is-red-with-unassigned-shards/208726/4 "2019-12-18T16:33:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
