# Shards allocation and limitations

**URL:** <https://discuss.elastic.co/t/shards-allocation-and-limitations/21473>\
**Category:** Elasticsearch\
**Created:** [January 5, 2015, 5:21am UTC](https://discuss.elastic.co/t/shards-allocation-and-limitations/21473 "2015-01-05T05:21:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [January 5, 2015, 5:21am UTC](https://discuss.elastic.co/t/shards-allocation-and-limitations/21473/1 "2015-01-05T05:21:59Z")

</div>

Hi All,

```
   I have an index with 51 millions records i have 2 nodes in my 

```

cluster.

```
   no of shards for the above index is : 5
   replicas are :1

        my question is how many records we can index to get better 

```

search capabilities? Is there any limitation for the index that will hold  
these many records. or please suggest me what are the settings in  
elasticsearch.yml file to optimize the index which is hoding 51 million  
records.

```
         can we increase number of shards other than five ? if we 

```

increase that one is there any problems with searching records?

```
          please help me.

```

Thanks

phani

--  
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/ac901c96-05f8-49f3-ac6c-826ee6f081f0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ac901c96-05f8-49f3-ac6c-826ee6f081f0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [January 5, 2015, 9:06pm UTC](https://discuss.elastic.co/t/shards-allocation-and-limitations/21473/2 "2015-01-05T21:06:45Z")

</div>

Depends on your setup.

Increasing shard count is only going to be useful if you add more nodes.

On 5 January 2015 at 16:21, [phani.nadiminti@goktree.com](mailto:phani.nadiminti@goktree.com) wrote:

> Hi All,
> 
> ```
> I have an index with 51 millions records i have 2 nodes in my
> 
> ```
> 
> cluster.
> 
> ```
> no of shards for the above index is : 5
> replicas are :1
> 
> my question is how many records we can index to get better
> 
> ```
> 
> search capabilities? Is there any limitation for the index that will hold  
> these many records. or please suggest me what are the settings in  
> elasticsearch.yml file to optimize the index which is hoding 51 million  
> records.
> 
> ```
> can we increase number of shards other than five ? if we
> 
> ```
> 
> increase that one is there any problems with searching records?
> 
> ```
> please help me.
> 
> ```
> 
> Thanks
> 
> phani
> 
> --  
> 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/ac901c96-05f8-49f3-ac6c-826ee6f081f0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ac901c96-05f8-49f3-ac6c-826ee6f081f0%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/ac901c96-05f8-49f3-ac6c-826ee6f081f0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ac901c96-05f8-49f3-ac6c-826ee6f081f0%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/CAEYi1X\_P0%2BKCF6m6jeHZvyDf4Fb2ZU9dwk%3DA1UbjNxU%2BLAXsAQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_P0%2BKCF6m6jeHZvyDf4Fb2ZU9dwk%3DA1UbjNxU%2BLAXsAQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [January 6, 2015, 5:36am UTC](https://discuss.elastic.co/t/shards-allocation-and-limitations/21473/3 "2015-01-06T05:36:41Z")

</div>

Thank you mark got your point.

On Monday, January 5, 2015 10:51:59 AM UTC+5:30, [phani.n...@goktree.com](mailto:phani.n...@goktree.com)  
wrote:

> Hi All,
> 
> ```
> I have an index with 51 millions records i have 2 nodes in my 
> 
> ```
> 
> cluster.
> 
> ```
> no of shards for the above index is : 5
> replicas are :1
> 
> my question is how many records we can index to get better 
> 
> ```
> 
> search capabilities? Is there any limitation for the index that will hold  
> these many records. or please suggest me what are the settings in  
> elasticsearch.yml file to optimize the index which is hoding 51 million  
> records.
> 
> ```
> can we increase number of shards other than five ? if we 
> 
> ```
> 
> increase that one is there any problems with searching records?
> 
> ```
> please help me.
> 
> ```
> 
> Thanks
> 
> phani

--  
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/83630a34-fcb1-4235-89f8-be72e3bbc8bd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/83630a34-fcb1-4235-89f8-be72e3bbc8bd%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:40am UTC](https://discuss.elastic.co/t/shards-allocation-and-limitations/21473/4 "2017-07-06T00:40:38Z")

</div>


