CPU:Memory ratio for a general-purpose cluster

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.

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