# Cluster configuration

**URL:** <https://www.singlestore.com/forum/t/cluster-configuration/3712>\
**Category:** Help\
**Created:** [January 10, 2022, 12:48am UTC](https://www.singlestore.com/forum/t/cluster-configuration/3712 "2022-01-10T00:48:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![A.G](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/a/e9c0ed/32.png) [@A.G](https://www.singlestore.com/forum/u/A.G)\
**Post date:** [January 10, 2022, 12:48am UTC](https://www.singlestore.com/forum/t/cluster-configuration/3712/1 "2022-01-10T00:48:16Z")

</div>

I have a question about setting the maximum memory for the nodes.

When I have 2 leaf nodes on the same host, and the total memory of the host 128GB and I decided to use 90% of the available memory on the host, which is 115 GB

Should I set the node maximum memory to 115GB then the engine will divide it evenly on leaf nodes, or set the maximum memory to 75GB which is the half of the host available memory

Knowing that NUMA is configured

---

<div class="post-metadata">

**Author:** ![adam](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.singlestore.com/forum/u/adam)\
**Post date:** [January 10, 2022, 10:08pm UTC](https://www.singlestore.com/forum/t/cluster-configuration/3712/2 "2022-01-10T22:08:32Z")

</div>

The quickest way to configure memory limits is likely:[optimize · SingleStore Documentation](https://docs.singlestore.com/db/v7.6/en/reference/singlestore-tools-reference/sdb-admin-commands/optimize.html)

If you want to do it manually though, each memsqld on a host is unaware of others - if left to configure themselves, they will set maximum\_memory to 90% of the physical memory on the host. So, you’ll need to configure maximum\_memory on each to 75 GB manually.
