Java Heap Size for ElasticSearch Nodes

I have an elasticsearch cluster with two nodes. I have read that java heap size sould not be more than 50% of physical memory. Is it valid for sum of all nodes heap size or just one?

For instance, my computer's physical memory is 24Gb. If I set 12Gb java heap size for each node, is it true?

Thank you,

You should run only one node with 12gb of heap.

Thank you @dadoonet, but I am confused. Did you mean 2 node cluster is unneccessary or 12gb + 12gb is Ok?

I'm saying that you should not run 2 nodes on the same machine.

Unless you have more than 64gb of RAM on the machine.

1 Like

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