Skip to content

add memory usage section to optimizing docs#7186

Merged
auvipy merged 2 commits into
celery:masterfrom
pawl:memory_docs
Dec 25, 2021
Merged

add memory usage section to optimizing docs#7186
auvipy merged 2 commits into
celery:masterfrom
pawl:memory_docs

Conversation

@pawl
Copy link
Copy Markdown
Contributor

@pawl pawl commented Dec 24, 2021

Description

This PR adds a section about reducing worker memory usage to the Optimizing -> Worker Settings section of the docs.

My main goal of the section is to help users differentiate between memory leak bugs in Celery itself (like in #4843) and memory usage issues in their own tasks.

@auvipy auvipy added this to the 5.2.x milestone Dec 25, 2021
:setting:`worker_max_tasks_per_child` and :setting:`worker_max_memory_per_child`
settings.

You must be careful not to set these settings too low, or else your workers
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any example here would be great

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, added: b1c1e60

@auvipy auvipy merged commit c506f45 into celery:master Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants