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

set prefetch multiplier to 2 #1525

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

set prefetch multiplier to 2 #1525

wants to merge 2 commits into from

Conversation

terrazoon
Copy link
Contributor

@terrazoon terrazoon commented Jan 8, 2025

Description

Our celery configuration was mostly default settings. Default settings are for apps that are cpu-bound, but ours is io-bound. For the case of the --prefetch_multiplier, this is talking about how many tasks each thread can hold onto while it is doing its thing. The more tasks that a thread holds onto, the more memory is used and more latency is potentially increased. The optimal value for io-bounds is supposed to be 1 or 2, whereas the default is 4.

Security Considerations

N/A

@terrazoon terrazoon self-assigned this Jan 8, 2025
@terrazoon terrazoon linked an issue Jan 8, 2025 that may be closed by this pull request
Copy link
Contributor

@ccostino ccostino left a comment

Choose a reason for hiding this comment

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

Thanks, @terrazoon!

@terrazoon terrazoon changed the title set prefetch multiplier to 2 and increase concurrency to 15 set prefetch multiplier to 2 Jan 9, 2025
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.

Set the worker prefetch multiplier to 2
2 participants