# Optimising SingleStore

**URL:** <https://www.singlestore.com/forum/t/optimising-singlestore/7239>\
**Category:** Security\
**Created:** [October 19, 2023, 11:32am UTC](https://www.singlestore.com/forum/t/optimising-singlestore/7239 "2023-10-19T11:32:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![heychazza](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/heychazza/32/2175_2.png) [@heychazza](https://www.singlestore.com/forum/u/heychazza)\
**Post date:** [October 19, 2023, 11:32am UTC](https://www.singlestore.com/forum/t/optimising-singlestore/7239/1 "2023-10-19T11:32:16Z")

</div>

Hi folks,

After running a report I’ve been given the following:

> <https://gist.github.com/heychazza/f85ee05bd05476c1143cf5238ed923ab>

Primarily my eyes are drawn to the following:

```auto
✓ consistentMaxMemory ........................... [PASS]
NOTE Inconsistent maximum_memory values for aggregators and leaves:
[14464] Mb on aggregators
[43394] Mb on leaves

```

For a machine with a total of 64gb ram (With both SingleStore + PHP/Laravel app) what should these be set to? I have 1 master aggregator and 1 leaf

---

<div class="post-metadata">

**Author:** ![hanson](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/hanson/32/196_2.png) [@hanson](https://www.singlestore.com/forum/u/hanson)\
**Post date:** [October 19, 2023, 11:26pm UTC](https://www.singlestore.com/forum/t/optimising-singlestore/7239/2 "2023-10-19T23:26:30Z")

</div>

Given that most of the work happens on the leaf and some final creation of the answer happens on the aggregator, this is a good start. You can use the same proportions but make sure enough is left over for PHP/Laravel and your app.

I’m assuming everything is on one machine.

See this for more useful info about this: [maximum\_memory · SingleStore Documentation](https://docs.singlestore.com/db/v8.1/user-and-cluster-administration/maintain-your-cluster/managing-memory/maximum-memory/)
