It was mentioned that workers in general need in between 200 MB and 400 MB.
5 celery workers x 2 x 400 MB = 4GB, got that. But why not also 10 gunicorn workers x 2 x 400 = 8GB memory?
It was mentioned that workers in general need in between 200 MB and 400 MB.
5 celery workers x 2 x 400 MB = 4GB, got that. But why not also 10 gunicorn workers x 2 x 400 = 8GB memory?
Hey @360Creators, this is because we have two types of celery workers, one for fast tasks (like real-time collaboration) and one for slow tasks (like exporting). If you set the number of celery workers to 1, then it actually starts one for fast tasks, and one for slow tasks, and they both need 400MB of memory. For the gunicorn workers we only have only type.
Mmm okay. But then I would expect 10 celery workers = 4gb and 5 gunicorn = 4gb, no? The other way around?
The numbers seem to be correct to me. For each celery worker configured, we’re actually starting two. So 5 celery workers * 2 * 400MB = 4GB. 10 gunicorn workers * 1 * 400MB = 4GB.
Ahh got it now. I re-read it and understand. Thank you Bram!