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

Assign unique name to each Celery worker #2404

Merged
merged 5 commits into from
Dec 4, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions refinery/supervisord.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ priority = 995

[program:worker1]
; minimum of four processes required to avoid problems with monitoring tasks
command = python %(here)s/manage.py celeryd -c 4 -Q celery --events
command = python %(here)s/manage.py celeryd -c 4 -Q celery -E -n worker1.%%h
environment = PATH="<%= @virtualenv %>/bin"
stdout_logfile = %(here)s/log/celeryd-w1.log
stdout_logfile_maxbytes = 5MB
Expand All @@ -47,7 +47,7 @@ priority = 995

[program:worker2]
; limits concurrency of file imports to one to avoid overloading system IO
command = python %(here)s/manage.py celeryd -c 1 -Q file_import --events
command = python %(here)s/manage.py celeryd -c 1 -Q file_import -E -n worker2.%%h
environment = PATH="<%= @virtualenv %>/bin"
stdout_logfile = %(here)s/log/celeryd-w2.log
stdout_logfile_maxbytes = 5MB
Expand Down