# CPU:Memory ratio for a general-purpose cluster

**URL:** <https://discuss.elastic.co/t/cpu-memory-ratio-for-a-general-purpose-cluster/311060>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [July 31, 2022, 4:32pm UTC](https://discuss.elastic.co/t/cpu-memory-ratio-for-a-general-purpose-cluster/311060 "2022-07-31T16:32:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![x00m](https://avatars.discourse-cdn.com/v4/letter/x/90db22/32.png) [@x00m](https://discuss.elastic.co/u/x00m)\
**Post date:** [July 31, 2022, 4:32pm UTC](https://discuss.elastic.co/t/cpu-memory-ratio-for-a-general-purpose-cluster/311060/1 "2022-07-31T16:32:54Z")

</div>

How can we determine a good ratio of CPU/memory configuration for elasticsearch nodes for general purpose usage? I see 1:4 ratio in most places, I am not sure though, how that ratio is derived.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 31, 2022, 7:51pm UTC](https://discuss.elastic.co/t/cpu-memory-ratio-for-a-general-purpose-cluster/311060/2 "2022-07-31T19:51:34Z")

</div>

Good question unfortunately There is no exact answer.

4:1 for general purpose was a good place to start. We also often see 8:1 It really depends on your use case And what the demands are from a ingest perspective, query perspective, etc.

What I would suggest is look at our hardware profiles for Elastic Cloud.

These are our configurations that thousands of customers are running on.

Example AWS

> **[VM configurations | Elasticsearch Service Documentation | Elastic](https://www.elastic.co/guide/en/cloud/current/ec_vm_configurations_2.html)**

> **[Selecting the right configuration for you | Elasticsearch Service...](https://www.elastic.co/guide/en/cloud/current/ec_selecting_the_right_configuration_for_you_2.html)**

> **[Elasticsearch Service AWS default provider instance configurations |...](https://www.elastic.co/guide/en/cloud/current/ec-default-aws-configurations.html)**

---

<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:** [August 28, 2022, 7:51pm UTC](https://discuss.elastic.co/t/cpu-memory-ratio-for-a-general-purpose-cluster/311060/3 "2022-08-28T19:51:48Z")

</div>

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