Commit 4436ae75 by Max Rothman

Add newrelic for all but hi-mem workers

parent cb39ca78
......@@ -386,24 +386,31 @@ EDXAPP_CELERY_WORKERS:
- queue: low
service_variant: cms
concurrency: 3
monitor: True
- queue: default
service_variant: cms
concurrency: 4
monitor: True
- queue: high
service_variant: cms
concurrency: 1
monitor: True
- queue: low
service_variant: lms
concurrency: 1
monitor: True
- queue: default
service_variant: lms
concurrency: 3
monitor: True
- queue: high
service_variant: lms
concurrency: 4
monitor: True
- queue: high_mem
service_variant: lms
concurrency: 2
monitor: False
EDXAPP_DEFAULT_CACHE_VERSION: "1"
EDXAPP_OAUTH_ENFORCE_SECURE: True
......
......@@ -7,7 +7,7 @@ directory={{ edxapp_code_dir }}
stdout_logfile={{ supervisor_log_dir }}/%(program_name)s-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)s-stderr.log
command={{ edxapp_venv_bin}}/python {{ edxapp_code_dir }}/manage.py {{ w.service_variant }} --settings=aws celery worker --loglevel=info --queues=edx.{{ w.service_variant }}.core.{{ w.queue }} --hostname=edx.{{ w.service_variant }}.core.{{ w.queue }}.%%h --concurrency={{ w.concurrency }}
command={{ edxapp_venv_dir + '/bin/newrelic-admin run-program ' if w.monitor and COMMON_ENABLE_NEWRELIC_APP else ''}}{{ edxapp_venv_bin }}/python {{ edxapp_code_dir }}/manage.py {{ w.service_variant }} --settings=aws celery worker --loglevel=info --queues=edx.{{ w.service_variant }}.core.{{ w.queue }} --hostname=edx.{{ w.service_variant }}.core.{{ w.queue }}.%%h --concurrency={{ w.concurrency }}
killasgroup=true
stopasgroup=true
stopwaitsecs=432000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment