How does the memory management work with regards to "low on resources" message when deploying a new app?
-
Hi there,
Somewhat new user of Cloudron and for the first time I ran into a message when I tried to deploy the new BookStack app, which states "This Cloudron is running low on resources". However when I look at the Graphs page, I see plenty of memory available (most cached though) and the charts show low usage.
It's unclear to me why I'd be told it's low on resources. Is it because it checks based on if every app deployed ran up to their max allotment, for example? Looking to understand the logic behind that message, how it determines that it's low on resources when the graphs would seem to indicate otherwise.
Trying to determine if I should be concerned and upgrade my VPS or if realistically I'm perfectly fine still for a bit of growth yet.
By the way, the BookStack app only requires 256 MB of memory, so based on the graphs it should have been fine as I have a few GBs left to go on the system.
EDIT: I should add that I recently installed nodebb which has a minimum requirement of 1GB even though it's currently only using about 200 MB, so I am suspecting that it is since it's max allocation for that app would run 1/4 of my whole system currently. Guessing the warning is based on max allotment of all apps combined and then seeing what's left over. If so, this should perhaps be improved though to be clarified or with a link to the documentation where a new section would be written about memory management and how it works.
-
The warning message is displayed based on the calculation of maximum memory limits of installed apps. So it is a recommendation, as you will run out of memory, in case all apps are close to their set memory limit. Often they are well below it, but since this is dynamic we cannot warn during installation of a new app based on that dynamic value. Basically the warning shows on a more conservative calculation.
-
@d19dotca said in How does the memory management work with regards to "low on resources" message when deploying a new app?:
be improved though to be clarified or with a link to the documentation where a new section would be written about memory management and how it works.
Ah okay, thank you for the clarification. I had just added an edit to my post at the same time as you confirmed it too.
Might I suggest this be improved though to be clarified or with a link to the documentation where a new section would be written about memory management and how it works. I'm in support for my day job so I always go "How can I keep users from needing to contact me", haha, and basically write out as much documentation as needed to prevent calls and stuff. This may make it easier for users going forward too as you have more onboard to Cloudron.
-
Additionally, are we able to lower the minimum requirements for some apps? For example, I have nodebb deployed which requires 1 GB however it's using less than 200 MB and I can't see it using much more as the use of it is very early stages and will be low overall for the foreseeable future. Seems like a waste of about 750 MB to me, which is a fair bit of memory when on a smaller VPS.
-
The memory limit set for apps does not mean that the memory cannot be used otherwise. This is just the upper limit at which the app gets restarted. Given that Cloudron has to strike a good default over various use-cases for the same apps, the limit is a bit conservative, but you can totally ignore that warning during installation as long as you keep an eye on the actual memory usage in your case.
-
@d19dotca said in How does the memory management work with regards to "low on resources" message when deploying a new app?:
Might I suggest this be improved though to be clarified or with a link to the documentation where a new section would be written about memory management and how it works. I'm in support for my day job so I always go "How can I keep users from needing to contact me", haha, and basically write out as much documentation as needed to prevent calls and stuff. This may make it easier for users going forward too as you have more onboard to Cloudron.
+1
I just had this exact same experience.
There is plenty of spare RAM on my system, but I just got that "This Cloudron is running low on resources" message.
Now I know how it's worked out I understand.
A link (ideally to docs, or failing that just to this thread) ought to be added to the notification that explains how it all works and how in many case the warning can be ignored.
-
Here we go : https://docs.cloudron.io/apps/#low-resource-warning