-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit the number of celery workers that Octopoes can start #3232
Conversation
Lex van Roon seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
It would be good to make sure we have this var as an option, and not by default pin it at 8. As for many small systems 8 will already be too much. |
Thanks for your submission. I suggest setting the If we decide to make this configurable as an OpenKAT feature, we will need to establish a default value and provide documentation for it. |
Lets add this to our documentation, or at least reference the original documentation on how to do this. |
I think this needs to both have a better default and be configurable. The current default is the number of cores, but this isn't the right value for a lot of deployment scenarios and for the development environment. I think the best default is a small number of workers, because I think it is best if OpenKAT works out of the box for small installations because those are most often installed by people who don't have the time/knowledge to do a lot of configuration/tuning. |
sets tje CELERY_WORKER_CONCURRENCY to 4 if not already specified in the ENV
Checklist for QA:
What works:Looks good. Onboarding works, scheduling of tasks work. Tasks are scheduled and completed. What doesn't work:n/a Bug or feature?:n/a |
Changes
By default, when Celery runs without any concurrency limits, it will spawn a process for each visible core. On machines with lots of cores, this leads to a lot of unneeded processes. This PR adds an environment variable for Octopoes which is used to limit the number of celery processes that can be started.