# Size index

**URL:** <https://discuss.elastic.co/t/size-index/113225>\
**Category:** Elasticsearch\
**Created:** [December 26, 2017, 2:58pm UTC](https://discuss.elastic.co/t/size-index/113225 "2017-12-26T14:58:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fram\_Souza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fram_souza/32/24833_2.png) [@Fram\_Souza](https://discuss.elastic.co/u/Fram_Souza)\
**Post date:** [December 26, 2017, 2:58pm UTC](https://discuss.elastic.co/t/size-index/113225/1 "2017-12-26T14:58:19Z")

</div>

Hello, I'm working on an Elasticsearch implementation project, and I'd like to know the best scenario for mapping the indexes.  
Will be imported within the index 130 GB of data that are necessary for operation, after import, we will have the increment of 2GB monthly within that same index.  
What would be the best mapping?  
1 - Monthly indexes even if the size of shards are small?  
2 - Annual indices since index size is relatively small?  
3 - Increase the amount of shards?

The profile is 80% read and 20% write. I also have 5 nodes in the cluster, Should each node contain a shard?

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [January 2, 2018, 8:34pm UTC](https://discuss.elastic.co/t/size-index/113225/2 "2018-01-02T20:34:39Z")

</div>

If indexing rate is low then there is no need to scale the numbers of shards to the nodes of your cluster (increasing shards is needed when more indexing throughput is required).

Also, we recommend to keep shard sizes around 50Gb and, according to what you have described, I suggest that you take a look in the [Rollover Index](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html) feature as it gives more flexibility beyond time-based indices.

---

<div class="post-metadata">

**Author:** ![Fram\_Souza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fram_souza/32/24833_2.png) [@Fram\_Souza](https://discuss.elastic.co/u/Fram_Souza)\
**Post date:** [January 2, 2018, 9:48pm UTC](https://discuss.elastic.co/t/size-index/113225/3 "2018-01-02T21:48:17Z")

</div>

Hi @thiago ,

I'm use API rollover and curator for handle index and snapshots. As the index rate is low I kept 5 shards and 1 replica.  
Thanks for reply 😉

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [January 2, 2018, 9:50pm UTC](https://discuss.elastic.co/t/size-index/113225/4 "2018-01-02T21:50:50Z")

</div>

@Fram_Souza if indexing rate is low (like \<1k/s) then you could easily stay with 1 shard only (as long as you have them under 50GB) and use the cluster more for replicas, which seems is more needed (due to higher query rate)

---

<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 30, 2018, 9:53pm UTC](https://discuss.elastic.co/t/size-index/113225/5 "2018-01-30T21:53:19Z")

</div>

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