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

Fix memory usage on Celery worker #657

Closed
Tracked by #3
Uxio0 opened this issue Jan 27, 2022 · 2 comments · Fixed by #658
Closed
Tracked by #3

Fix memory usage on Celery worker #657

Uxio0 opened this issue Jan 27, 2022 · 2 comments · Fixed by #658
Assignees
Labels
enhancement New feature or request

Comments

@Uxio0
Copy link
Member

Uxio0 commented Jan 27, 2022

What is needed?

Fix memory usage on Celery worker

Background

Solution

Setting worker reboot after a number of tasks or after ram is used:

@Uxio0 Uxio0 added the enhancement New feature or request label Jan 27, 2022
@Uxio0 Uxio0 self-assigned this Jan 27, 2022
@Uxio0
Copy link
Member Author

Uxio0 commented Jan 27, 2022

It's currently not supported for gevent, only prefork: https://docs.celeryproject.org/en/stable/userguide/workers.html#max-tasks-per-child-setting

Uxio0 added a commit that referenced this issue Jan 27, 2022
- Configurable via WORKER_MAX_MEMORY_PER_CHILD environment variable
- Closes #657
@Uxio0
Copy link
Member Author

Uxio0 commented Jan 27, 2022

Maybe max_memory_per_child works, there's no warning or error when running Celery with that flag

Uxio0 added a commit that referenced this issue Jan 27, 2022
- Configurable via WORKER_MAX_MEMORY_PER_CHILD environment variable
- Closes #657
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant