Solved Memory requirements need to be raised (?)
I made a test installation of the weblate app on a new cloudron installation today.
Our current weblate installation (which is sadly still at 2.4) is currently running alongside an Nginx installation in a 2gb ram vps. The cloudron app already says it requires at least 2gb of ram, but even it being just installed I was observing out of memory messages in my kernel log until I raised the apps memory limit to 4gb.
I had a similar experience. I tried to install this on my 2GB test instances and it ran out of memory. I had to increase the VPS itself to 4GB to get it running.
scooke last edited by scooke
@fbartels There is this note on the docs site that states Weblate itself minimally needs 2Gb of ram and 2 cores, and I guess that doesn't take into consideration what RAM is needed for other processes on the server! So even though it is a django-based app (right?) it needs a fair bit of resources, : https://docs.weblate.org/no/latest/admin/install/venv-debian.html#:~:text=Weblate should run on all,1 GB of storage space.
@scooke maybe that was a bit unclear in my previous statement. Our current installation is on a 4gb vps. My first attempt was on a new vps with two cores and 4gb of ram, but here (even though it was "only" cloudron and the weblate app) weblate did not even start up since it was swapping and running out if memory.
My next attempt was on a vps with 8gb of ram and four cores. Here I saw messages of cgroups running out of memory (even though I imported only a small translation project, no addons yet). Raising the app memory limit (which is just the Django application) to 4GB made these messages go away. But even there when importing a bigger test project lead to a mail that weblate had run out of memory and the project did not import completely.
The one obvious tuning setting I see in the weblate.ini (which seems to be almost completely the weblate example config) is https://git.cloudron.io/cloudron/weblate-app/-/blob/master/weblate.ini#L22, but even here our current installation uses 12 instead of the current 8.
scooke last edited by
@fbartels Hm, that is a sobering report. Thanks for the details of the setup you were using. I'll have to proceed carefully with my own tests.
This is good feedback though, looks like we have to bump the minimum requirements even further.
Regarding the worker count, I guess we have to add some ability to make persistent changes to the configs.
I guess we have to add some ability to make persistent changes to the configs.
Yes, that would be nice. This part seems relevant: https://docs.weblate.org/en/latest/admin/install/docker.html#container-settings
Right, I've put a TODO already for those in the package https://git.cloudron.io/cloudron/weblate-app/-/blob/master/start.sh#L135 I just wasn't sure if it should be set by the admin or somehow based on cpu/memory counts.
Both issues are addressed with the new version 0.3.0 now