# How to change of cluster Health?

**URL:** <https://discuss.elastic.co/t/how-to-change-of-cluster-health/51148>\
**Category:** Elasticsearch\
**Created:** [May 27, 2016, 10:27am UTC](https://discuss.elastic.co/t/how-to-change-of-cluster-health/51148 "2016-05-27T10:27:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajnikant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajnikant/32/6490_2.png) [@Rajnikant](https://discuss.elastic.co/u/Rajnikant)\
**Post date:** [May 27, 2016, 10:27am UTC](https://discuss.elastic.co/t/how-to-change-of-cluster-health/51148/1 "2016-05-27T10:27:45Z")

</div>

My elastic search cluster health was red.  
i got this when i get health of cluster  
{  
"cluster\_name" : "elasticsearch",  
"status" : "red",  
"timed\_out" : true,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 4,  
"active\_shards" : 4,  
"relocating\_shards" : 0,  
"initializing\_shards" : 4,  
"unassigned\_shards" : 134,  
"delayed\_unassigned\_shards" : 0,  
"number\_of\_pending\_tasks" : 12,  
"number\_of\_in\_flight\_fetch" : 0,  
"task\_max\_waiting\_in\_queue\_millis" : 841403,  
"active\_shards\_percent\_as\_number" : 2.8169014084507045  
}  
How can i change health of cluster?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 29, 2016, 1:11am UTC](https://discuss.elastic.co/t/how-to-change-of-cluster-health/51148/2 "2016-05-29T01:11:00Z")

</div>

If it hasn't already turned yellow by now you need to look into the logs and things like `_cat/recovery` to see why it won't allocate the primary shards.

---

<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:** [July 5, 2017, 10:48pm UTC](https://discuss.elastic.co/t/how-to-change-of-cluster-health/51148/3 "2017-07-05T22:48:19Z")

</div>


