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

Combined worker+beat dyno for free tier #19

Open
ukch opened this issue Oct 20, 2015 · 5 comments
Open

Combined worker+beat dyno for free tier #19

ukch opened this issue Oct 20, 2015 · 5 comments

Comments

@ukch
Copy link

ukch commented Oct 20, 2015

Heroku's free tier only allows one worker dyno to run at a time. Since celery can process multiple queues in the same process, I would suggest adding a combined process to Procfile that runs both worker and beat queues at once.

@edorgeville
Copy link

👍

1 similar comment
@Jaspaul
Copy link

Jaspaul commented Nov 30, 2015

👍

@edorgeville
Copy link

I used this similar project that uses only one dyno : https://github.com/alex88/sentry-heroku

@ukch
Copy link
Author

ukch commented Dec 12, 2015

I have tested the above PR on the Heroku free tier, and it seems to work without issues. To use it run heroku ps:scale worker=0 beat=0 worker_plus_beat=1.
Note: This PR also limits the number of processes for web and worker_plus_beat to 1. This fixes the 'too many connections' error on the Redis free tier.

@MechanisM
Copy link

This is better solution #20 (comment) because it keeps awesome uwsgi and one line in Procfile.

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

No branches or pull requests

4 participants