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
7a7d5070
Unverified
Commit
7a7d5070
authored
7 years ago
by
Joseph Mulloy
Committed by
GitHub
7 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4207 from edx/jdmulloy/ops2440/mongo_read_secondaries_2
Add read preference for module store OPS-2440
parents
eda2f139
80ca3cfa
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 @
7a7d5070
-
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
-
Role: nginx
-
Modified
`lms.j2`
,
`cms.j2`
,
`credentials.j2`
,
`edx_notes_api.j2`
and
`insights.j2`
to enable HTTP Strict Transport Security
-
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
-
Added
`NGINX_HSTS_MAX_AGE`
to make HSTS header
`max_age`
value configurable and used in templates
-
Role: server_utils
-
Role: server_utils
-
Install "vim", not "vim-tiny".
-
Install "vim", not "vim-tiny".
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/edxapp/defaults/main.yml
View file @
7a7d5070
...
@@ -65,12 +65,16 @@ EDXAPP_XQUEUE_DJANGO_AUTH:
...
@@ -65,12 +65,16 @@ EDXAPP_XQUEUE_DJANGO_AUTH:
password
:
'
password'
password
:
'
password'
EDXAPP_XQUEUE_URL
:
'
http://localhost:18040'
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_PASSWORD
:
'
password'
EDXAPP_MONGO_PORT
:
27017
EDXAPP_MONGO_PORT
:
27017
EDXAPP_MONGO_USER
:
'
edxapp'
EDXAPP_MONGO_USER
:
'
edxapp'
EDXAPP_MONGO_DB_NAME
:
'
edxapp'
EDXAPP_MONGO_DB_NAME
:
'
edxapp'
EDXAPP_MONGO_USE_SSL
:
False
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_DB_NAME
:
'
edxapp'
EDXAPP_MYSQL_USER
:
'
edxapp001'
EDXAPP_MYSQL_USER
:
'
edxapp001'
...
@@ -863,6 +867,8 @@ EDXAPP_LMS_DRAFT_DOC_STORE_CONFIG:
...
@@ -863,6 +867,8 @@ EDXAPP_LMS_DRAFT_DOC_STORE_CONFIG:
EDXAPP_LMS_SPLIT_DOC_STORE_CONFIG
:
EDXAPP_LMS_SPLIT_DOC_STORE_CONFIG
:
<<
:
*edxapp_generic_default_docstore
<<
:
*edxapp_generic_default_docstore
replicaSet
:
"
{{
EDXAPP_MONGO_REPLICA_SET
}}"
read_preference
:
"
{{
EDXAPP_LMS_SPLIT_DOC_STORE_READ_PREFERENCE
}}"
EDXAPP_CMS_DOC_STORE_CONFIG
:
EDXAPP_CMS_DOC_STORE_CONFIG
:
<<
:
*edxapp_generic_default_docstore
<<
:
*edxapp_generic_default_docstore
...
...
This diff is collapsed.
Click to expand it.
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