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

Update workers for machine capacity #30

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

Conversation

mkangia
Copy link
Contributor

@mkangia mkangia commented Sep 12, 2024

This PR updates

  1. gunicorn workers to 32 to scale up for requests from HQ repeaters which seems the max number for the production machine. These workers don't take much resources so it should be fine for staging as well.
  2. celery workers to 5 from 10. Celery worker takes quite some CPU and was pushing production machine CPU's to full capacity each time parallel requests were received from repeaters with each request queuing a task for celery. So, brought that down to 5 since celery can always catch up with tasks.

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