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
80ca3cfa
Commit
80ca3cfa
authored
Nov 14, 2017
by
Joseph Mulloy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add read preference for module store OPS-2440
parent
eda2f139
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
CHANGELOG.md
+11
-1
playbooks/roles/edxapp/defaults/main.yml
+7
-1
No files found.
CHANGELOG.md
View file @
80ca3cfa
-
Role: edxapp
-
Added
`EDXAPP_LMS_SPLIT_DOC_STORE_READ_PREFERENCE`
with a default value of
SECONDARY_PREFERED to distribute read workload across the replica set.
-
Changed
`EDXAPP_MONGO_HOSTS`
to be a comma seperated string, which is
required by pymongo.MongoReplicaSetClient for multiple hosts instead of an
array.
-
Added
`EDXAPP_MONGO_REPLICA_SET`
, which is required to use
pymongo.MongoReplicaSetClient in PyMongo 2.9.1, whis is required to use the
read_preference setting. This should be set to the name of your replica set.
-
Role: nginx
-
Modified
`lms.j2`
,
`cms.j2`
,
`credentials.j2`
,
`edx_notes_api.j2`
and
`insights.j2`
to enable HTTP Strict Transport Security
-
Added
`NGINX_HSTS_MAX_AGE`
to make HSTS header
`max_age`
value configurable and used in templates
-
Role: server_utils
-
Install "vim", not "vim-tiny".
...
...
playbooks/roles/edxapp/defaults/main.yml
View file @
80ca3cfa
...
...
@@ -65,12 +65,16 @@ EDXAPP_XQUEUE_DJANGO_AUTH:
password
:
'
password'
EDXAPP_XQUEUE_URL
:
'
http://localhost:18040'
EDXAPP_MONGO_HOSTS
:
[
'
localhost'
]
# EDXAPP_MONGO_HOSTS must be a comma seperated list of hosts/ips for
# compatibility with pymongo.MongoReplicaSetClient in PyMongo 2.9.1
EDXAPP_MONGO_HOSTS
:
'
localhost'
EDXAPP_MONGO_PASSWORD
:
'
password'
EDXAPP_MONGO_PORT
:
27017
EDXAPP_MONGO_USER
:
'
edxapp'
EDXAPP_MONGO_DB_NAME
:
'
edxapp'
EDXAPP_MONGO_USE_SSL
:
False
EDXAPP_MONGO_REPLICA_SET
:
'
'
EDXAPP_LMS_SPLIT_DOC_STORE_READ_PREFERENCE
:
'
SECONDARY_PREFERRED'
EDXAPP_MYSQL_DB_NAME
:
'
edxapp'
EDXAPP_MYSQL_USER
:
'
edxapp001'
...
...
@@ -863,6 +867,8 @@ EDXAPP_LMS_DRAFT_DOC_STORE_CONFIG:
EDXAPP_LMS_SPLIT_DOC_STORE_CONFIG
:
<<
:
*edxapp_generic_default_docstore
replicaSet
:
"
{{
EDXAPP_MONGO_REPLICA_SET
}}"
read_preference
:
"
{{
EDXAPP_LMS_SPLIT_DOC_STORE_READ_PREFERENCE
}}"
EDXAPP_CMS_DOC_STORE_CONFIG
:
<<
:
*edxapp_generic_default_docstore
...
...
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