# Max Number of data nodes per machines

**URL:** <https://discuss.elastic.co/t/max-number-of-data-nodes-per-machines/326788>\
**Category:** Elasticsearch\
**Created:** [March 1, 2023, 4:41pm UTC](https://discuss.elastic.co/t/max-number-of-data-nodes-per-machines/326788 "2023-03-01T16:41:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![avnere](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@avnere](https://discuss.elastic.co/u/avnere)\
**Post date:** [March 1, 2023, 4:41pm UTC](https://discuss.elastic.co/t/max-number-of-data-nodes-per-machines/326788/1 "2023-03-01T16:41:57Z")

</div>

Hi,

I want to install few data nodes on one machines. Each data node will get 32GB RAM.  
Is there any formula for getting the max number of nodes per machine CPU and RAM?

Thanks

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [March 1, 2023, 5:41pm UTC](https://discuss.elastic.co/t/max-number-of-data-nodes-per-machines/326788/2 "2023-03-01T17:41:30Z")

</div>

I think the official word is "this is not recommended", but I'd say somewhere between total\_ram/32 -1 and total\_ram/64. So a 128G machine could hold 2-3 nodes.

Assuming your 32G is for heap, Elastic has moved a lot of memory usage off-heap, so if these are production, be careful.

---

<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:** [March 1, 2023, 10:23pm UTC](https://discuss.elastic.co/t/max-number-of-data-nodes-per-machines/326788/3 "2023-03-01T22:23:20Z")

</div>

Elasticsearch can be pretty intensive on resources so contention needs to be taken into account. If the host can handle it then go for it.

---

<div class="post-metadata">

**Author:** ![avnere](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@avnere](https://discuss.elastic.co/u/avnere)\
**Post date:** [March 2, 2023, 9:14am UTC](https://discuss.elastic.co/t/max-number-of-data-nodes-per-machines/326788/4 "2023-03-02T09:14:09Z")

</div>

What about the CPU?

Basically, I am running benchmark, I am indexing ~300GB.  
I have machine with 512 RAM and 72 cores.

I placed on it 1 master node + 4 data node. The result is ~400k index rate.  
When changing the cluster to 2 machine with 2 data nodes on each I am getting ~600k index rate.

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [March 2, 2023, 1:41pm UTC](https://discuss.elastic.co/t/max-number-of-data-nodes-per-machines/326788/5 "2023-03-02T13:41:13Z")

</div>

My guess is that unless you have exceptional io system, cpu won't be the bottleneck. You are benching your environment, that is always the best answer.

---

<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:** [March 30, 2023, 1:41pm UTC](https://discuss.elastic.co/t/max-number-of-data-nodes-per-machines/326788/6 "2023-03-30T13:41:32Z")

</div>

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