# Why All shards failed

**URL:** <https://discuss.elastic.co/t/why-all-shards-failed/211288>\
**Category:** Elasticsearch\
**Created:** [December 10, 2019, 11:32am UTC](https://discuss.elastic.co/t/why-all-shards-failed/211288 "2019-12-10T11:32:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![david3721](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@david3721](https://discuss.elastic.co/u/david3721)\
**Post date:** [December 10, 2019, 11:32am UTC](https://discuss.elastic.co/t/why-all-shards-failed/211288/1 "2019-12-10T11:32:05Z")

</div>

why my Kibana like this... help please! version is 7.1.1  
**{**  
\*\* "message": "all shards failed: [search\_phase\_execution\_exception] all shards failed",\*\*  
\*\* "statusCode": 503,\*\*  
\*\* "error": "Service Unavailable"\*\*  
**}**

and cluster status is red...

curl -XGET [http://127.0.0.1:9200/\_cluster/health?pretty=true](http://127.0.0.1:9200/_cluster/health?pretty=true)  
{  
"cluster\_name" : "npcflow",  
"status" : "red",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 1491,  
"active\_shards" : 1491,  
"relocating\_shards" : 0,  
"initializing\_shards" : 4,  
"unassigned\_shards" : 69,  
"delayed\_unassigned\_shards" : 0,  
"number\_of\_pending\_tasks" : 181,  
"number\_of\_in\_flight\_fetch" : 0,  
"task\_max\_waiting\_in\_queue\_millis" : 16073,  
"active\_shards\_percent\_as\_number" : 95.33248081841433  
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 10, 2019, 12:01pm UTC](https://discuss.elastic.co/t/why-all-shards-failed/211288/2 "2019-12-10T12:01:00Z")

</div>

You probably have too many shards per node.

May I suggest you look at the following resources about sizing:

[https://www.elastic.co/elasticon/conf/2016/sf/quantitative-cluster-sizing](https://www.elastic.co/elasticon/conf/2016/sf/quantitative-cluster-sizing)

> **[How many shards should I have in my Elasticsearch cluster?](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster)**
>
> If you are looking for practical guidelines around how many indices and shards to have in your cluster, this blog post will help you avoid common pitfalls.

https://www.slideshare.net/slideshow/embed_code/key/vR0XKDq4TGa77z

And [https://www.elastic.co/webinars/using-rally-to-get-your-elasticsearch-cluster-size-right](https://www.elastic.co/webinars/using-rally-to-get-your-elasticsearch-cluster-size-right)

---

<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:** [January 7, 2020, 12:09pm UTC](https://discuss.elastic.co/t/why-all-shards-failed/211288/3 "2020-01-07T12:09:34Z")

</div>

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