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
372ef367
Commit
372ef367
authored
Apr 09, 2018
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable New Relic monitoring on newrelic consumer
parent
87f5c303
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
CHANGELOG.md
+2
-0
playbooks/roles/xqueue/defaults/main.yml
+1
-0
playbooks/roles/xqueue/templates/xqueue_consumer.conf.j2
+8
-2
util/jenkins/ansible-provision.sh
+1
-0
No files found.
CHANGELOG.md
View file @
372ef367
...
...
@@ -4,6 +4,8 @@
XQUEUE_RABBITMQ_PORT XQUEUE_RABBITMQ_TLS
-
Added NEWRELIC_APPNAME and NEWRELIC_LICENSE_KEY to the configuration files consumed by XQueue.
Useful for external utilities that are reporting NR metrics.
-
Added XQUEUE_CONSUMER_NEWRELIC_APPNAME which is added to the supervisor start of xqueue_consumer
if you have New Relic enabled.
-
Role edx_django_service
-
Added maintenance page under the flag EDX_DJANGO_SERVICE_ENABLE_S3_MAINTENANCE.
...
...
playbooks/roles/xqueue/defaults/main.yml
View file @
372ef367
...
...
@@ -50,6 +50,7 @@ XQUEUE_MYSQL_OPTIONS: {}
XQUEUE_MYSQL_CONN_MAX_AGE
:
0
# This is Django's default https://docs.djangoproject.com/en/1.11/ref/settings/#conn-max-age
XQUEUE_NEWRELIC_APPNAME
:
"
{{
COMMON_ENVIRONMENT
}}-{{
COMMON_DEPLOYMENT
}}-xqueue"
XQUEUE_CONSUMER_NEWRELIC_APPNAME
:
"
{{
COMMON_ENVIRONMENT
}}-{{
COMMON_DEPLOYMENT
}}-xqueue_consumer"
XQUEUE_SETTINGS_MODULE
:
"
xqueue.aws_settings"
# Set the number of workers explicitely for xqueue
XQUEUE_WORKERS
:
!!null
...
...
playbooks/roles/xqueue/templates/xqueue_consumer.conf.j2
View file @
372ef367
[program:xqueue_consumer]
command={{ xqueue_venv_bin }}/django-admin.py run_consumer --pythonpath={{ xqueue_code_dir }} --settings=xqueue.{{ XQUEUE_SETTINGS }}
{% if COMMON_ENABLE_NEWRELIC_APP %}
{% set executable = xqueue_venv_bin + '/newrelic-admin run-program ' + xqueue_venv_bin + '/django-admin.py run_consumer' %}
{% else %}
{% set executable = xqueue_venv_bin + '/django-admin.py run_consumer' %}
{% endif %}
command={{ executable }} --pythonpath={{ xqueue_code_dir }} --settings=xqueue.{{ XQUEUE_SETTINGS }}
user={{ common_web_user }}
directory={{ xqueue_code_dir }}
environment=LANG={{ XQUEUE_LANG }},WORKERS_PER_QUEUE={{xqueue_env_config.XQUEUE_WORKERS_PER_QUEUE}}
environment=
{% if COMMON_ENABLE_NEWRELIC_APP %}NEW_RELIC_STARTUP_TIMEOUT=10,NEW_RELIC_APP_NAME={{ XQUEUE_CONSUMER_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%}
LANG={{ XQUEUE_LANG }},WORKERS_PER_QUEUE={{xqueue_env_config.XQUEUE_WORKERS_PER_QUEUE}}
stdout_logfile={{ supervisor_log_dir }}/%(program_name)s-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)s-stderr.log
...
...
util/jenkins/ansible-provision.sh
View file @
372ef367
...
...
@@ -287,6 +287,7 @@ EDXAPP_NEWRELIC_LMS_APPNAME: sandbox-${dns_name}-edxapp-lms
EDXAPP_NEWRELIC_CMS_APPNAME: sandbox-
${
dns_name
}
-edxapp-cms
EDXAPP_NEWRELIC_WORKERS_APPNAME: sandbox-
${
dns_name
}
-edxapp-workers
XQUEUE_NEWRELIC_APPNAME: sandbox-
${
dns_name
}
-xqueue
XQUEUE_CONSUMER_NEWRELIC_APPNAME: sandbox-
${
dns_name
}
-xqueue_consumer
FORUM_NEW_RELIC_APP_NAME: sandbox-
${
dns_name
}
-forums
SANDBOX_USERNAME:
$github_username
EDXAPP_ECOMMERCE_PUBLIC_URL_ROOT: "https://ecommerce-
${
deploy_host
}
"
...
...
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