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
36ab81ec
Commit
36ab81ec
authored
Apr 12, 2017
by
Feanil Patel
Committed by
Ned Batchelder
Apr 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be able to override the django sql CONN_MAX_AGE setting.
(cherry picked from commit
1c138599
)
parent
5324a520
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
CHANGELOG.md
+2
-0
playbooks/roles/edxapp/defaults/main.yml
+6
-0
No files found.
CHANGELOG.md
View file @
36ab81ec
-
Role: edxapp
-
Role: edxapp
-
Added a new EDXAPP_MYSQL_CONN_MAX_AGE, default to 0. Adjust it to change how long a connection is kept open
for reuse before it is closed.
-
Set preload_app to False in gunicorn config for LMS and Studio.
-
Set preload_app to False in gunicorn config for LMS and Studio.
-
Role: xqueue
-
Role: xqueue
-
Changed
`XQUEUE_RABBITMQ_TLS`
default from
`true`
to
`false`
.
-
Changed
`XQUEUE_RABBITMQ_TLS`
default from
`true`
to
`false`
.
...
...
playbooks/roles/edxapp/defaults/main.yml
View file @
36ab81ec
...
@@ -87,6 +87,9 @@ EDXAPP_MYSQL_CSMH_PASSWORD: "{{ EDXAPP_MYSQL_PASSWORD }}"
...
@@ -87,6 +87,9 @@ EDXAPP_MYSQL_CSMH_PASSWORD: "{{ EDXAPP_MYSQL_PASSWORD }}"
EDXAPP_MYSQL_CSMH_HOST
:
"
{{
EDXAPP_MYSQL_HOST
}}"
EDXAPP_MYSQL_CSMH_HOST
:
"
{{
EDXAPP_MYSQL_HOST
}}"
EDXAPP_MYSQL_CSMH_PORT
:
"
{{
EDXAPP_MYSQL_PORT
}}"
EDXAPP_MYSQL_CSMH_PORT
:
"
{{
EDXAPP_MYSQL_PORT
}}"
# This is Django's default https://docs.djangoproject.com/en/1.8/ref/settings/#conn-max-age
EDXAPP_MYSQL_CONN_MAX_AGE
:
0
EDXAPP_MYSQL_HOST
:
'
localhost'
EDXAPP_MYSQL_HOST
:
'
localhost'
EDXAPP_MYSQL_PORT
:
'
3306'
EDXAPP_MYSQL_PORT
:
'
3306'
...
@@ -725,6 +728,7 @@ edxapp_databases:
...
@@ -725,6 +728,7 @@ edxapp_databases:
PASSWORD
:
"
{{
EDXAPP_MYSQL_REPLICA_PASSWORD
}}"
PASSWORD
:
"
{{
EDXAPP_MYSQL_REPLICA_PASSWORD
}}"
HOST
:
"
{{
EDXAPP_MYSQL_REPLICA_HOST
}}"
HOST
:
"
{{
EDXAPP_MYSQL_REPLICA_HOST
}}"
PORT
:
"
{{
EDXAPP_MYSQL_REPLICA_PORT
}}"
PORT
:
"
{{
EDXAPP_MYSQL_REPLICA_PORT
}}"
CONN_MAX_AGE
:
"
{{
EDXAPP_MYSQL_CONN_MAX_AGE
}}"
default
:
default
:
ENGINE
:
'
django.db.backends.mysql'
ENGINE
:
'
django.db.backends.mysql'
NAME
:
"
{{
EDXAPP_MYSQL_DB_NAME
}}"
NAME
:
"
{{
EDXAPP_MYSQL_DB_NAME
}}"
...
@@ -733,6 +737,7 @@ edxapp_databases:
...
@@ -733,6 +737,7 @@ edxapp_databases:
HOST
:
"
{{
EDXAPP_MYSQL_HOST
}}"
HOST
:
"
{{
EDXAPP_MYSQL_HOST
}}"
PORT
:
"
{{
EDXAPP_MYSQL_PORT
}}"
PORT
:
"
{{
EDXAPP_MYSQL_PORT
}}"
ATOMIC_REQUESTS
:
True
ATOMIC_REQUESTS
:
True
CONN_MAX_AGE
:
"
{{
EDXAPP_MYSQL_CONN_MAX_AGE
}}"
student_module_history
:
student_module_history
:
ENGINE
:
'
django.db.backends.mysql'
ENGINE
:
'
django.db.backends.mysql'
NAME
:
"
{{
EDXAPP_MYSQL_CSMH_DB_NAME
}}"
NAME
:
"
{{
EDXAPP_MYSQL_CSMH_DB_NAME
}}"
...
@@ -740,6 +745,7 @@ edxapp_databases:
...
@@ -740,6 +745,7 @@ edxapp_databases:
PASSWORD
:
"
{{
EDXAPP_MYSQL_CSMH_PASSWORD
}}"
PASSWORD
:
"
{{
EDXAPP_MYSQL_CSMH_PASSWORD
}}"
HOST
:
"
{{
EDXAPP_MYSQL_CSMH_HOST
}}"
HOST
:
"
{{
EDXAPP_MYSQL_CSMH_HOST
}}"
PORT
:
"
{{
EDXAPP_MYSQL_CSMH_PORT
}}"
PORT
:
"
{{
EDXAPP_MYSQL_CSMH_PORT
}}"
CONN_MAX_AGE
:
"
{{
EDXAPP_MYSQL_CONN_MAX_AGE
}}"
edxapp_generic_auth_config
:
&edxapp_generic_auth
edxapp_generic_auth_config
:
&edxapp_generic_auth
EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST
:
"
{{
EDXAPP_EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST
}}"
EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST
:
"
{{
EDXAPP_EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST
}}"
...
...
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