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
1c138599
Commit
1c138599
authored
Apr 12, 2017
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be able to override the django sql CONN_MAX_AGE setting.
parent
c72e0ef9
Hide 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 @
1c138599
-
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.
-
Role: analytics_api
-
Added
`ANALYTICS_API_AGGREGATE_PAGE_SIZE`
, default value 10. Adjust this parameter to increase the number of
...
...
playbooks/roles/edxapp/defaults/main.yml
View file @
1c138599
...
...
@@ -87,6 +87,9 @@ EDXAPP_MYSQL_CSMH_PASSWORD: "{{ EDXAPP_MYSQL_PASSWORD }}"
EDXAPP_MYSQL_CSMH_HOST
:
"
{{
EDXAPP_MYSQL_HOST
}}"
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_PORT
:
'
3306'
...
...
@@ -761,6 +764,7 @@ edxapp_databases:
PASSWORD
:
"
{{
EDXAPP_MYSQL_REPLICA_PASSWORD
}}"
HOST
:
"
{{
EDXAPP_MYSQL_REPLICA_HOST
}}"
PORT
:
"
{{
EDXAPP_MYSQL_REPLICA_PORT
}}"
CONN_MAX_AGE
:
"
{{
EDXAPP_MYSQL_CONN_MAX_AGE
}}"
default
:
ENGINE
:
'
django.db.backends.mysql'
NAME
:
"
{{
EDXAPP_MYSQL_DB_NAME
}}"
...
...
@@ -769,6 +773,7 @@ edxapp_databases:
HOST
:
"
{{
EDXAPP_MYSQL_HOST
}}"
PORT
:
"
{{
EDXAPP_MYSQL_PORT
}}"
ATOMIC_REQUESTS
:
True
CONN_MAX_AGE
:
"
{{
EDXAPP_MYSQL_CONN_MAX_AGE
}}"
student_module_history
:
ENGINE
:
'
django.db.backends.mysql'
NAME
:
"
{{
EDXAPP_MYSQL_CSMH_DB_NAME
}}"
...
...
@@ -776,6 +781,7 @@ edxapp_databases:
PASSWORD
:
"
{{
EDXAPP_MYSQL_CSMH_PASSWORD
}}"
HOST
:
"
{{
EDXAPP_MYSQL_CSMH_HOST
}}"
PORT
:
"
{{
EDXAPP_MYSQL_CSMH_PORT
}}"
CONN_MAX_AGE
:
"
{{
EDXAPP_MYSQL_CONN_MAX_AGE
}}"
edxapp_generic_auth_config
:
&edxapp_generic_auth
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