Replies: 1 comment 2 replies
-
You can reduce memory usage by having a single Celery worker to process all the queues:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running on a shared hosting environment with limited RAM per user (1.5 GB). I understand that Weblate states 3GB as minimal requirement but I hope to be able to run Weblate nonetheless. The requirements seem to be quite high for just a small website.
I have set
CELERY_WORKER_CONCURRENCY = 1
in order to limit the tasks per worker to two (one main celery task and one worker task, as far as I understand). Only then the celery tasks are not killed by the system for exceeding the RAM limit.Additional settings I have set:
But those tasks still seem to consume up to 142MB per task, as long as I am interpreting these numbers correctly. Is it normal that these tasks require so much RAM even though Weblate is completely idle / freshly set up?
![image](https://private-user-images.githubusercontent.com/2863198/277400104-4da8676f-1c17-4886-8530-da4f0b4114ff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MjA5NTMsIm5iZiI6MTczOTYyMDY1MywicGF0aCI6Ii8yODYzMTk4LzI3NzQwMDEwNC00ZGE4Njc2Zi0xYzE3LTQ4ODYtODUzMC1kYTRmMGI0MTE0ZmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMTE1NzMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmJmYmI2YjAxY2I5ZTdmOGU0OTM2ZGM3MTliNmJiNWE0NTA2ZDZiYzI1Y2EzZGMxZjZmOWQ5ZDMyYWEzNWIxZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.VltpsvW0Eb2c_92WqdLMTIKIDusfZvZHgq841ienEvM)
Even when Weblate is running after setting
CELERY_WORKER_CONCURRENCY = 1
, as soon as I try to create a component based on a Git Repository, the app gets killed:This is my celery configuration for supervisord:
Beta Was this translation helpful? Give feedback.
All reactions