# ElasticSearch Sizing

**URL:** <https://discuss.elastic.co/t/elasticsearch-sizing/301931>\
**Category:** Elasticsearch\
**Created:** [April 8, 2022, 7:35am UTC](https://discuss.elastic.co/t/elasticsearch-sizing/301931 "2022-04-08T07:35:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ELIASP](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@ELIASP](https://discuss.elastic.co/u/ELIASP)\
**Post date:** [April 8, 2022, 7:35am UTC](https://discuss.elastic.co/t/elasticsearch-sizing/301931/1 "2022-04-08T07:35:55Z")

</div>

I am trying to understand the number of shards that I need to create, primary and replicas.  
I have run the following calucation  
Total Data (GB)= Raw data (GB) per day \* Number of days retained \* (Number of replicas + 1)  
Total Storage (GB) = Total data (GB) \* (1 + 0.15 disk Watermark threshold + 0.1 Margin of error)

The total storage returned is 500 GB

Running the next formulae  
Total Data Nodes = ROUNDUP(Total storage (GB) / Memory per data node / Memory:Data ratio)  
Gives 2 (1 replica). My node has 64 GB RAM and the JVM 30 GB.  
Is that correct or should I simply divide the 500 GB with the max per shard, 50 GB, and have 10 shards?

---

<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:** [May 6, 2022, 7:36am UTC](https://discuss.elastic.co/t/elasticsearch-sizing/301931/2 "2022-05-06T07:36:29Z")

</div>

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