Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
4436ae75
Commit
4436ae75
authored
Mar 17, 2015
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add newrelic for all but hi-mem workers
parent
cb39ca78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
playbooks/roles/edxapp/defaults/main.yml
+7
-0
playbooks/roles/edxapp/templates/workers.conf.j2
+1
-1
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
4436ae75
...
...
@@ -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
...
...
playbooks/roles/edxapp/templates/workers.conf.j2
View file @
4436ae75
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment