# Strange shard counts

**URL:** <https://discuss.elastic.co/t/strange-shard-counts/20899>\
**Category:** Elasticsearch\
**Created:** [November 22, 2014, 7:38pm UTC](https://discuss.elastic.co/t/strange-shard-counts/20899 "2014-11-22T19:38:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jingzhao\_Ou](https://avatars.discourse-cdn.com/v4/letter/j/eada6e/32.png) [@Jingzhao\_Ou](https://discuss.elastic.co/u/Jingzhao_Ou)\
**Post date:** [November 22, 2014, 7:38pm UTC](https://discuss.elastic.co/t/strange-shard-counts/20899/1 "2014-11-22T19:38:51Z")

</div>

Hi,

I checked the index stats by visiting

[http://localhost:9200/raw/\_stats?pretty](http://localhost:9200/raw/_stats?pretty)

{  
"\_shards" : {  
"total" : 10,  
"successful" : 5,  
"failed" : 0  
},

There are totally 10 shards, 5 successful, 0 failed. But where are the  
missing 5 shards? Any insights?

Thanks a lot!  
Jingzhao

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/72aeee90-8a28-4d1c-929e-3d1d3c4a03bd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/72aeee90-8a28-4d1c-929e-3d1d3c4a03bd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [November 23, 2014, 4:54pm UTC](https://discuss.elastic.co/t/strange-shard-counts/20899/2 "2014-11-23T16:54:36Z")

</div>

If you have a single node cluster, they are unassigned.

Jörg

On Sat, Nov 22, 2014 at 8:38 PM, Jingzhao Ou [jingzhao.ou@gmail.com](mailto:jingzhao.ou@gmail.com) wrote:

> Hi,
> 
> I checked the index stats by visiting
> 
> [http://localhost:9200/raw/\_stats?pretty](http://localhost:9200/raw/_stats?pretty)
> 
> {  
> "\_shards" : {  
> "total" : 10,  
> "successful" : 5,  
> "failed" : 0  
> },
> 
> There are totally 10 shards, 5 successful, 0 failed. But where are the  
> missing 5 shards? Any insights?
> 
> Thanks a lot!  
> Jingzhao
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/72aeee90-8a28-4d1c-929e-3d1d3c4a03bd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/72aeee90-8a28-4d1c-929e-3d1d3c4a03bd%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/72aeee90-8a28-4d1c-929e-3d1d3c4a03bd%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/72aeee90-8a28-4d1c-929e-3d1d3c4a03bd%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGkn6g%2BW1Fj5fjvggK5XZMxbzHNqHW9e4QY4o%3D6ocidSA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGkn6g%2BW1Fj5fjvggK5XZMxbzHNqHW9e4QY4o%3D6ocidSA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jingzhao\_Ou](https://avatars.discourse-cdn.com/v4/letter/j/eada6e/32.png) [@Jingzhao\_Ou](https://discuss.elastic.co/u/Jingzhao_Ou)\
**Post date:** [November 23, 2014, 5:54pm UTC](https://discuss.elastic.co/t/strange-shard-counts/20899/3 "2014-11-23T17:54:34Z")

</div>

Hi, Jörg,

Yes, I got that now. On my development PC, I changed things in  
elasticsearch.yml to

index.number\_of\_shards: 1  
index.number\_of\_replicas: 0

The stats output becomes:

"\_shards" : {  
"total" : 1,  
"successful" : 1,  
"failed" : 0  
},

Thanks a lot for your help!  
Jingzhao

On Sunday, November 23, 2014 8:55:02 AM UTC-8, Jörg Prante wrote:

> If you have a single node cluster, they are unassigned.
> 
> Jörg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/38cb6a00-0175-41b6-ac4c-770689cd07d6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/38cb6a00-0175-41b6-ac4c-770689cd07d6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ajay\_Divakaran](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@Ajay\_Divakaran](https://discuss.elastic.co/u/Ajay_Divakaran)\
**Post date:** [November 23, 2014, 6:09pm UTC](https://discuss.elastic.co/t/strange-shard-counts/20899/4 "2014-11-23T18:09:19Z")

</div>

The 5 that were not assigned is that because you set a limit on the max  
shards per node?

On Sunday, November 23, 2014 11:24:34 PM UTC+5:30, Jingzhao Ou wrote:

> Hi, Jörg,
> 
> Yes, I got that now. On my development PC, I changed things in  
> elasticsearch.yml to
> 
> index.number\_of\_shards: 1  
> index.number\_of\_replicas: 0
> 
> The stats output becomes:
> 
> "\_shards" : {  
> "total" : 1,  
> "successful" : 1,  
> "failed" : 0  
> },
> 
> Thanks a lot for your help!  
> Jingzhao
> 
> On Sunday, November 23, 2014 8:55:02 AM UTC-8, Jörg Prante wrote:
> 
> > If you have a single node cluster, they are unassigned.
> > 
> > Jörg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4d6af1b8-3e02-4200-8b90-be168305b8e2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4d6af1b8-3e02-4200-8b90-be168305b8e2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jingzhao\_Ou](https://avatars.discourse-cdn.com/v4/letter/j/eada6e/32.png) [@Jingzhao\_Ou](https://discuss.elastic.co/u/Jingzhao_Ou)\
**Post date:** [November 23, 2014, 6:45pm UTC](https://discuss.elastic.co/t/strange-shard-counts/20899/5 "2014-11-23T18:45:54Z")

</div>

Hi, Ajay,

The 5 that were not assigned is that because you set a limit on the max

> shards per node?

I don't see any limit on the max shards per node. I did a Google search and  
cannot find such parameter. I cannot only see memory limits. Mind sharing  
more details?

Thanks a lot for your help.  
Jingzhao

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/566cee35-d4df-42fc-9895-31677b4b46c0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/566cee35-d4df-42fc-9895-31677b4b46c0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ajay\_Divakaran](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@Ajay\_Divakaran](https://discuss.elastic.co/u/Ajay_Divakaran)\
**Post date:** [November 23, 2014, 6:58pm UTC](https://discuss.elastic.co/t/strange-shard-counts/20899/6 "2014-11-23T18:58:57Z")

</div>

See the section on "Total shards per node".

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Monday, November 24, 2014 12:15:54 AM UTC+5:30, Jingzhao Ou wrote:

> Hi, Ajay,
> 
> The 5 that were not assigned is that because you set a limit on the max
> 
> > shards per node?
> 
> I don't see any limit on the max shards per node. I did a Google search  
> and cannot find such parameter. I cannot only see memory limits. Mind  
> sharing more details?
> 
> Thanks a lot for your help.  
> Jingzhao

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/fbdc79fa-112a-4549-b198-04f45ed65093%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fbdc79fa-112a-4549-b198-04f45ed65093%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:48am UTC](https://discuss.elastic.co/t/strange-shard-counts/20899/7 "2017-07-06T00:48:12Z")

</div>


