# My health status is red

**URL:** <https://discuss.elastic.co/t/my-health-status-is-red/58266>\
**Category:** Elasticsearch\
**Created:** [August 17, 2016, 2:32pm UTC](https://discuss.elastic.co/t/my-health-status-is-red/58266 "2016-08-17T14:32:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igor\_Samusenko](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@Igor\_Samusenko](https://discuss.elastic.co/u/Igor_Samusenko)\
**Post date:** [August 17, 2016, 2:32pm UTC](https://discuss.elastic.co/t/my-health-status-is-red/58266/1 "2016-08-17T14:32:45Z")

</div>

> {  
> "cluster\_name" : "elasticsearch",  
> "status" : "red",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 3200,  
> "active\_shards" : 3200,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 4,  
> "unassigned\_shards" : 3888,  
> "delayed\_unassigned\_shards" : 0,  
> "number\_of\_pending\_tasks" : 1526,  
> "number\_of\_in\_flight\_fetch" : 0,  
> "task\_max\_waiting\_in\_queue\_millis" : 805993,  
> "active\_shards\_percent\_as\_number" : 45.121263395375074  
> }

What is wrong with my cluster?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 17, 2016, 2:46pm UTC](https://discuss.elastic.co/t/my-health-status-is-red/58266/2 "2016-08-17T14:46:58Z")

</div>

That is a large number of shards for a single node cluster. That could very well be why you are having so many shards unassigned. I would recommend either reducing the number of shards in the cluster and/or increasing the amount resources, especially heap space, available to the node.

What is your current heap size?

---

<div class="post-metadata">

**Author:** ![Igor\_Samusenko](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@Igor\_Samusenko](https://discuss.elastic.co/u/Igor_Samusenko)\
**Post date:** [August 17, 2016, 2:49pm UTC](https://discuss.elastic.co/t/my-health-status-is-red/58266/3 "2016-08-17T14:49:20Z")

</div>

I have not set it up, so it is probably default 1 GB

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 17, 2016, 2:53pm UTC](https://discuss.elastic.co/t/my-health-status-is-red/58266/4 "2016-08-17T14:53:32Z")

</div>

Then I would say that there is a reasonably high probability that is the cause.

---

<div class="post-metadata">

**Author:** ![Igor\_Samusenko](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@Igor\_Samusenko](https://discuss.elastic.co/u/Igor_Samusenko)\
**Post date:** [August 17, 2016, 2:59pm UTC](https://discuss.elastic.co/t/my-health-status-is-red/58266/5 "2016-08-17T14:59:09Z")

</div>

@Christian_Dahlqvist I have only 5 shards per index, the reason there are so many shards is that I have a lot of indexes (which I think I can reduce). Would it be better if I reduce the number of indexes?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 17, 2016, 3:03pm UTC](https://discuss.elastic.co/t/my-health-status-is-red/58266/6 "2016-08-17T15:03:17Z")

</div>

I would recommend reducing the number of indices as well as shards. Aim to have shards a few GB in size at least. If they are currently smaller, go from 5 shards per index to 1. Also look at consolidating indices where possible to increase the shard size. If you are using time based indices, it may be worthwhile considering weekly or monthly indices if daily volumes are small.

---

<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:27pm UTC](https://discuss.elastic.co/t/my-health-status-is-red/58266/7 "2017-07-05T22:27:12Z")

</div>


