Skip to content
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

Adding docker resources limits and reservations for celery #1434

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

null-ref-0000
Copy link
Contributor

This pull request sets resource limits on celery for cpu and memory. In addition its sets resource reservation on celery for cpu and memory. This avoids the issue of celery causing out of memory issues on the machine. This pull request does not set resource limit or reservations on any other services, but we should likely consider it. By default Docker set the max limit to mem or cpu available on the machine for all containers, but celery end up always being killed due to it consume almost all of the memory on the machine.

Reference:

https://docs.docker.com/reference/compose-file/deploy/#resources

Copy link
Contributor

Woohoo @null-ref-0000! 🎉 You've just dropped some hot new code! 🔥

Hang tight while we review this! You rock! 🤘

@null-ref-0000
Copy link
Contributor Author

#1435

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant