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
ed7a06be
Commit
ed7a06be
authored
May 16, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Newrelic support for lms/cms python
parent
529d374b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
playbooks/roles/edxapp/defaults/main.yml
+3
-0
playbooks/roles/edxapp/templates/cms.conf.j2
+9
-2
playbooks/roles/edxapp/templates/lms.conf.j2
+9
-2
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
ed7a06be
...
...
@@ -211,6 +211,9 @@ EDXAPP_SESSION_COOKIE_DOMAIN: ""
EDXAPP_XML_FROM_GIT
:
false
EDXAPP_XML_S3_BUCKET
:
!!null
EDXAPP_XML_S3_KEY
:
!!null
EDXAPP_ENABLE_NEWRELIC
:
true
EDXAPP_NEWRELIC_EXECUTABLE
:
"
/opt/edx/bin/newrelic-admin"
#-------- Everything below this line is internal to the role ------------
#Use YAML references (& and *) and hash merge <<: to factor out shared settings
...
...
playbooks/roles/edxapp/templates/cms.conf.j2
View file @
ed7a06be
[program:cms]
{% if EDXAPP_ENABLE_NEWRELIC %}
{% set executable = edxapp_venv_dir + '/bin/gunicorn' %}
{% else %}
{% set executable = '/opt/edx/bin/newrelic-admin run-program' + edxapp_venv_dir + '/bin/gunicorn' %}
{% endif %}
{% if ansible_processor|length > 0 %}
command=
{{ edxapp_venv_dir }}/bin/gunicorn
--preload -b {{ edxapp_cms_gunicorn_host }}:{{ edxapp_cms_gunicorn_port }} -w {{ ansible_processor|length * worker_core_mult.cms }} --timeout=300 --pythonpath={{ edxapp_code_dir }} cms.wsgi
command=
executable
--preload -b {{ edxapp_cms_gunicorn_host }}:{{ edxapp_cms_gunicorn_port }} -w {{ ansible_processor|length * worker_core_mult.cms }} --timeout=300 --pythonpath={{ edxapp_code_dir }} cms.wsgi
{% else %}
command=
{{ edxapp_venv_dir }}/bin/gunicorn
--preload -b {{ edxapp_cms_gunicorn_host }}:{{ edxapp_cms_gunicorn_port }} -w {{ worker_core_mult.cms }} --timeout=300 --pythonpath={{ edxapp_code_dir }} cms.wsgi
command=
executable
--preload -b {{ edxapp_cms_gunicorn_host }}:{{ edxapp_cms_gunicorn_port }} -w {{ worker_core_mult.cms }} --timeout=300 --pythonpath={{ edxapp_code_dir }} cms.wsgi
{% endif %}
user={{ common_web_user }}
...
...
playbooks/roles/edxapp/templates/lms.conf.j2
View file @
ed7a06be
[program:lms]
{% if EDXAPP_ENABLE_NEWRELIC %}
{% set executable = EDXAPP_NEWRELIC_EXECUTABLE + 'run-program' + edxapp_venv_dir + '/bin/gunicorn' %}
{% else %}
{% set executable = edxapp_venv_dir + '/bin/gunicorn' %}
{% endif %}
{% if ansible_processor|length > 0 %}
command={{ e
dxapp_venv_dir }}/bin/gunicorn
--preload -b {{ edxapp_lms_gunicorn_host }}:{{ edxapp_lms_gunicorn_port }} -w {{ ansible_processor|length * worker_core_mult.lms }} --timeout=300 --pythonpath={{ edxapp_code_dir }} lms.wsgi
command={{ e
xecutable }}
--preload -b {{ edxapp_lms_gunicorn_host }}:{{ edxapp_lms_gunicorn_port }} -w {{ ansible_processor|length * worker_core_mult.lms }} --timeout=300 --pythonpath={{ edxapp_code_dir }} lms.wsgi
{% else %}
command={{ e
dxapp_venv_dir }}/bin/gunicorn
--preload -b {{ edxapp_lms_gunicorn_host }}:{{ edxapp_lms_gunicorn_port }} -w {{ worker_core_mult.lms }} --timeout=300 --pythonpath={{ edxapp_code_dir }} lms.wsgi
command={{ e
xecutable }}
--preload -b {{ edxapp_lms_gunicorn_host }}:{{ edxapp_lms_gunicorn_port }} -w {{ worker_core_mult.lms }} --timeout=300 --pythonpath={{ edxapp_code_dir }} lms.wsgi
{% endif %}
user={{ common_web_user }}
...
...
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