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
b1960082
Commit
b1960082
authored
Aug 27, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add extra gunicorn options to edxapp
parent
5ce49068
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
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
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
b1960082
...
@@ -20,6 +20,9 @@ EDXAPP_LMS_BASE: ""
...
@@ -20,6 +20,9 @@ EDXAPP_LMS_BASE: ""
EDXAPP_PREVIEW_LMS_BASE
:
"
"
EDXAPP_PREVIEW_LMS_BASE
:
"
"
EDXAPP_CMS_BASE
:
"
"
EDXAPP_CMS_BASE
:
"
"
EDXAPP_LMS_GUNICORN_EXTRA
:
"
"
EDXAPP_CMS_GUNICORN_EXTRA
:
"
"
# Set this to the maximum number
# Set this to the maximum number
# of requests for gunicorn for the lms and cms
# of requests for gunicorn for the lms and cms
# gunicorn --max-requests <num>
# gunicorn --max-requests <num>
...
...
playbooks/roles/edxapp/templates/cms.conf.j2
View file @
b1960082
...
@@ -16,9 +16,9 @@ command={{ executable }} {{ max_req }} --preload -b {{ edxapp_cms_gunicorn_host
...
@@ -16,9 +16,9 @@ command={{ executable }} {{ max_req }} --preload -b {{ edxapp_cms_gunicorn_host
{% else -%}
{% else -%}
{# This is for backwards compatibility, set workers explicitely using EDXAPP_WORKERS #}
{# This is for backwards compatibility, set workers explicitely using EDXAPP_WORKERS #}
{% if ansible_processor|length > 0 -%}
{% 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 -%}
{% 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 -%}
{% endif -%}
{% endif -%}
...
...
playbooks/roles/edxapp/templates/lms.conf.j2
View file @
b1960082
...
@@ -17,9 +17,9 @@ command={{ executable }} {{ max_req }} --preload -b {{ edxapp_lms_gunicorn_host
...
@@ -17,9 +17,9 @@ command={{ executable }} {{ max_req }} --preload -b {{ edxapp_lms_gunicorn_host
{% else -%}
{% else -%}
{# This is for backwards compatibility, set workers explicitely using EDXAPP_WORKERS #}
{# This is for backwards compatibility, set workers explicitely using EDXAPP_WORKERS #}
{% if ansible_processor|length > 0 -%}
{% 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 -%}
{% 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 %}
{% endif %}
{% endif %}
...
...
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