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
OpenEdx
configuration
Commits
4c8d09c9
Commit
4c8d09c9
authored
Aug 28, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1490 from edx/cg/add_gunicorn_extras
Add var for extra gunicorn options
parents
f1407cd5
47e744e1
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
25 additions
and
15 deletions
+25
-15
playbooks/roles/analytics-api/defaults/main.yml
+1
-0
playbooks/roles/analytics-api/templates/edx/app/analytics-api/analytics-api.sh.j2
+1
-1
playbooks/roles/analytics-server/defaults/main.yml
+1
-0
playbooks/roles/analytics-server/templates/etc/init/analytics.conf.j2
+1
-1
playbooks/roles/analytics/defaults/main.yml
+1
-0
playbooks/roles/analytics/templates/etc/init/analytics.conf.j2
+1
-1
playbooks/roles/discern/defaults/main.yml
+1
-1
playbooks/roles/discern/templates/discern.conf.j2
+2
-2
playbooks/roles/edxapp/defaults/main.yml
+3
-0
playbooks/roles/edxapp/templates/cms.conf.j2
+2
-2
playbooks/roles/edxapp/templates/lms.conf.j2
+2
-2
playbooks/roles/ora/defaults/main.yml
+1
-0
playbooks/roles/ora/templates/ora.conf.j2
+1
-1
playbooks/roles/xqueue/defaults/main.yml
+2
-0
playbooks/roles/xqueue/templates/xqueue.conf.j2
+3
-3
playbooks/roles/xserver/defaults/main.yml
+1
-0
playbooks/roles/xserver/templates/xserver.conf.j2
+1
-1
No files found.
playbooks/roles/analytics-api/defaults/main.yml
View file @
4c8d09c9
...
...
@@ -59,6 +59,7 @@ ANALYTICS_API_CONFIG:
PORT
:
'
3306'
ANALYTICS_API_GUNICORN_WORKERS
:
"
2"
ANALYTICS_API_GUNICORN_EXTRA
:
"
"
#
# vars are namespace with the module name.
#
...
...
playbooks/roles/analytics-api/templates/edx/app/analytics-api/analytics-api.sh.j2
View file @
4c8d09c9
...
...
@@ -15,4 +15,4 @@ export NEW_RELIC_LICENSE_KEY="{{ NEWRELIC_LICENSE_KEY }}"
source
{{
analytics_api_app_dir
}}
/analytics_api_env
{{
executable
}}
--pythonpath
={{
analytics_api_code_dir
}}
-b
{{
analytics_api_gunicorn_host
}}
:
{{
analytics_api_gunicorn_port
}}
-w
{{
ANALYTICS_API_GUNICORN_WORKERS
}}
--timeout
={{
analytics_api_gunicorn_timeout
}}
analyticsdataserver.wsgi:application
{{
executable
}}
--pythonpath
={{
analytics_api_code_dir
}}
-b
{{
analytics_api_gunicorn_host
}}
:
{{
analytics_api_gunicorn_port
}}
-w
{{
ANALYTICS_API_GUNICORN_WORKERS
}}
--timeout
={{
analytics_api_gunicorn_timeout
}}
{{
ANALYTICS_API_GUNICORN_EXTRA
}}
analyticsdataserver.wsgi:application
playbooks/roles/analytics-server/defaults/main.yml
View file @
4c8d09c9
...
...
@@ -19,6 +19,7 @@ AS_SERVER_PORT: '9000'
AS_ENV_LANG
:
'
en_US.UTF-8'
AS_LOG_LEVEL
:
'
INFO'
AS_WORKERS
:
'
2'
AS_GUNICORN_EXTRA
:
"
"
# add public keys to enable the automator user
# for running manage.py commands
...
...
playbooks/roles/analytics-server/templates/etc/init/analytics.conf.j2
View file @
4c8d09c9
...
...
@@ -18,4 +18,4 @@ env DJANGO_SETTINGS_MODULE={{ as_django_settings }}
chdir {{ as_code_dir }}
setuid {{ as_web_user }}
exec {{ as_venv_dir }}/bin/gunicorn -b 0.0.0.0:$PORT -w $WORKERS --pythonpath={{ as_code_dir }}/anserv anserv.wsgi
exec {{ as_venv_dir }}/bin/gunicorn -b 0.0.0.0:$PORT -w $WORKERS --pythonpath={{ as_code_dir }}/anserv
{{ AS_GUNICORN_EXTRA }}
anserv.wsgi
playbooks/roles/analytics/defaults/main.yml
View file @
4c8d09c9
...
...
@@ -19,6 +19,7 @@ ANALYTICS_SERVER_PORT: '9000'
ANALYTICS_ENV_LANG
:
'
en_US.UTF-8'
ANALYTICS_LOG_LEVEL
:
'
INFO'
ANALYTICS_WORKERS
:
'
2'
ANALYTICS_GUNICORN_EXTRA
:
"
"
DATABASES
:
default
:
&databases_default
...
...
playbooks/roles/analytics/templates/etc/init/analytics.conf.j2
View file @
4c8d09c9
...
...
@@ -18,4 +18,4 @@ env DJANGO_SETTINGS_MODULE={{ analytics_django_settings }}
chdir {{ analytics_code_dir }}
setuid {{ analytics_web_user }}
exec {{ analytics_venv_dir }}/bin/gunicorn -b 0.0.0.0:$PORT -w $WORKERS --pythonpath={{ analytics_code_dir }}/anserv anserv.wsgi
exec {{ analytics_venv_dir }}/bin/gunicorn -b 0.0.0.0:$PORT -w $WORKERS --pythonpath={{ analytics_code_dir }}/anserv
{{ ANALYTICS_GUNICORN_EXTRA }}
anserv.wsgi
playbooks/roles/discern/defaults/main.yml
View file @
4c8d09c9
...
...
@@ -11,7 +11,7 @@ DISCERN_MYSQL_PASSWORD: 'password'
DISCERN_MYSQL_HOST
:
'
localhost'
DISCERN_MYSQL_PORT
:
'
3306'
DISCERN_LANG
:
"
en_US.UTF-8"
DISCERN_GUNICORN_EXTRA
:
"
"
discern_app_dir
:
"
{{
COMMON_APP_DIR
}}/discern"
discern_code_dir
:
"
{{
discern_app_dir
}}/discern"
...
...
playbooks/roles/discern/templates/discern.conf.j2
View file @
4c8d09c9
[program:discern]
{% if ansible_processor|length > 0 %}
command={{ discern_venv_bin }}/gunicorn --preload -b {{ discern_gunicorn_host }}:{{ discern_gunicorn_port }} -w {{ ansible_processor|length * discern_worker_mult }} --timeout=30 --pythonpath={{ discern_code_dir }} discern.wsgi
command={{ discern_venv_bin }}/gunicorn --preload -b {{ discern_gunicorn_host }}:{{ discern_gunicorn_port }} -w {{ ansible_processor|length * discern_worker_mult }} --timeout=30 --pythonpath={{ discern_code_dir }}
{{ DISCERN_GUNICORN_EXTRA }}
discern.wsgi
{% else %}
command={{ discern_venv_bin }}/gunicorn --preload -b {{ discern_gunicorn_host }}:{{ discern_gunicorn_port }} -w {{ discern_worker_mult }} --timeout=30 --pythonpath={{ discern_code_dir }} discern.wsgi
command={{ discern_venv_bin }}/gunicorn --preload -b {{ discern_gunicorn_host }}:{{ discern_gunicorn_port }} -w {{ discern_worker_mult }} --timeout=30 --pythonpath={{ discern_code_dir }}
{{ DISCERN_GUNICORN_EXTRA }}
discern.wsgi
{% endif %}
user={{ common_web_user }}
directory={{ discern_code_dir }}
...
...
playbooks/roles/edxapp/defaults/main.yml
View file @
4c8d09c9
...
...
@@ -20,6 +20,9 @@ EDXAPP_LMS_BASE: ""
EDXAPP_PREVIEW_LMS_BASE
:
"
"
EDXAPP_CMS_BASE
:
"
"
EDXAPP_LMS_GUNICORN_EXTRA
:
"
"
EDXAPP_CMS_GUNICORN_EXTRA
:
"
"
# Set this to the maximum number
# of requests for gunicorn for the lms and cms
# gunicorn --max-requests <num>
...
...
playbooks/roles/edxapp/templates/cms.conf.j2
View file @
4c8d09c9
...
...
@@ -16,9 +16,9 @@ command={{ executable }} {{ max_req }} --preload -b {{ edxapp_cms_gunicorn_host
{% else -%}
{# This is for backwards compatibility, set workers explicitely using EDXAPP_WORKERS #}
{% if ansible_processor|length > 0 -%}
command={{ executable }} {{ max_req }} --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 }} {{ max_req }} --preload -b {{ edxapp_cms_gunicorn_host }}:{{ edxapp_cms_gunicorn_port }} -w {{ ansible_processor|length * worker_core_mult.cms }} --timeout=300 --pythonpath={{ edxapp_code_dir }}
{{ EDXAPP_CMS_GUNICORN_EXTRA }}
cms.wsgi
{% else -%}
command={{ executable }} {{ max_req }} --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 }} {{ max_req }} --preload -b {{ edxapp_cms_gunicorn_host }}:{{ edxapp_cms_gunicorn_port }} -w {{ worker_core_mult.cms }} --timeout=300 --pythonpath={{ edxapp_code_dir }}
{{ EDXAPP_CMS_GUNICORN_EXTRA }}
cms.wsgi
{% endif -%}
{% endif -%}
...
...
playbooks/roles/edxapp/templates/lms.conf.j2
View file @
4c8d09c9
...
...
@@ -17,9 +17,9 @@ command={{ executable }} {{ max_req }} --preload -b {{ edxapp_lms_gunicorn_host
{% else -%}
{# This is for backwards compatibility, set workers explicitely using EDXAPP_WORKERS #}
{% if ansible_processor|length > 0 -%}
command={{ executable }} {{ max_req }} --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={{ executable }} {{ max_req }} --preload -b {{ edxapp_lms_gunicorn_host }}:{{ edxapp_lms_gunicorn_port }} -w {{ ansible_processor|length * worker_core_mult.lms }} --timeout=300 --pythonpath={{ edxapp_code_dir }}
{{ EDXAPP_LMS_GUNICORN_EXTRA }}
lms.wsgi
{% else -%}
command={{ executable }} {{ max_req }} --preload -b {{ edxapp_lms_gunicorn_host }}:{{ edxapp_lms_gunicorn_port }} -w {{ worker_core_mult.lms }} --timeout=300 --pythonpath={{ edxapp_code_dir }} lms.wsgi
command={{ executable }} {{ max_req }} --preload -b {{ edxapp_lms_gunicorn_host }}:{{ edxapp_lms_gunicorn_port }} -w {{ worker_core_mult.lms }} --timeout=300 --pythonpath={{ edxapp_code_dir }}
{{ EDXAPP_LMS_GUNICORN_EXTRA }}
lms.wsgi
{% endif %}
{% endif %}
...
...
playbooks/roles/ora/defaults/main.yml
View file @
4c8d09c9
# vars for the ORA role
---
ORA_NGINX_PORT
:
18060
ORA_GUNICORN_EXTRA
:
"
"
ora_app_dir
:
"
{{
COMMON_APP_DIR
}}/ora"
ora_code_dir
:
"
{{
ora_app_dir
}}/ora"
...
...
playbooks/roles/ora/templates/ora.conf.j2
View file @
4c8d09c9
[program:ora]
command={{ ora_venv_bin }}/gunicorn --preload -b {{ ora_gunicorn_host }}:{{ ora_gunicorn_port }} -w {{ ora_gunicorn_workers }} --timeout=90 --pythonpath={{ ora_code_dir}} edx_ora.wsgi
command={{ ora_venv_bin }}/gunicorn --preload -b {{ ora_gunicorn_host }}:{{ ora_gunicorn_port }} -w {{ ora_gunicorn_workers }} --timeout=90 --pythonpath={{ ora_code_dir}}
{{ ORA_GUNICORN_EXTRA }}
edx_ora.wsgi
user={{ common_web_user }}
directory={{ ora_code_dir }}
...
...
playbooks/roles/xqueue/defaults/main.yml
View file @
4c8d09c9
...
...
@@ -2,6 +2,8 @@
# when the role is included
---
XQUEUE_NGINX_PORT
:
18040
XQUEUE_GUNICORN_WORKERS_EXTRA
:
"
"
XQUEUE_GUNICORN_EXTRA
:
"
"
XQUEUE_QUEUES
:
# push queue
'
edX-Open_DemoX'
:
'
http://localhost:18050'
...
...
playbooks/roles/xqueue/templates/xqueue.conf.j2
View file @
4c8d09c9
...
...
@@ -7,12 +7,12 @@
{% endif %}
{% if XQUEUE_WORKERS -%}
command={{ executable }} --preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunicorn_port }} -w {{ XQUEUE_WORKERS }} --timeout=300 --pythonpath={{ xqueue_code_dir }} xqueue.wsgi
command={{ executable }} --preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunicorn_port }} -w {{ XQUEUE_WORKERS }} --timeout=300 --pythonpath={{ xqueue_code_dir }}
{{ XQUEUE_GUNICORN_WORKERS_EXTRA }}
xqueue.wsgi
{% else -%}
{% if ansible_processor|length > 0 %}
command={{ executable }} --preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunicorn_port }} -w {{ ansible_processor|length * 2 }} --timeout=300 --pythonpath={{ xqueue_code_dir }} xqueue.wsgi
command={{ executable }} --preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunicorn_port }} -w {{ ansible_processor|length * 2 }} --timeout=300 --pythonpath={{ xqueue_code_dir }}
{{ XQUEUE_GUNICORN_EXTRA }}
xqueue.wsgi
{% else -%}
command={{ executable }} --preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunicorn_port }} -w 2 --timeout=300 --pythonpath={{ xqueue_code_dir }} xqueue.wsgi
command={{ executable }} --preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunicorn_port }} -w 2 --timeout=300 --pythonpath={{ xqueue_code_dir }}
{{ XQUEUE_GUNICORN_EXTRA }}
xqueue.wsgi
{% endif -%}
{% endif -%}
...
...
playbooks/roles/xserver/defaults/main.yml
View file @
4c8d09c9
...
...
@@ -3,6 +3,7 @@
XSERVER_NGINX_PORT
:
18050
XSERVER_GUNICORN_EXTRA
:
"
"
XSERVER_RUN_URL
:
'
'
XSERVER_LOGGING_ENV
:
'
sandbox'
XSERVER_SYSLOG_SERVER
:
'
'
...
...
playbooks/roles/xserver/templates/xserver.conf.j2
View file @
4c8d09c9
[program:xserver]
command={{ xserver_venv_bin }}/gunicorn --preload -b {{ xserver_gunicorn_host }}:{{ xserver_gunicorn_port }} -w {{ xserver_gunicorn_workers }} --timeout=30 --pythonpath={{ xserver_code_dir }} pyxserver_wsgi:application
command={{ xserver_venv_bin }}/gunicorn --preload -b {{ xserver_gunicorn_host }}:{{ xserver_gunicorn_port }} -w {{ xserver_gunicorn_workers }} --timeout=30 --pythonpath={{ xserver_code_dir }}
{{ XSERVER_GUNICORN_EXTRA }}
pyxserver_wsgi:application
user={{ common_web_user }}
directory={{ xserver_code_dir }}
...
...
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