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
a72becb1
Commit
a72becb1
authored
Nov 07, 2017
by
Joseph Mulloy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mongo read preference OPS-2440
parent
206358db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
CHANGELOG.md
+9
-0
playbooks/roles/edxapp/defaults/main.yml
+5
-0
No files found.
CHANGELOG.md
View file @
a72becb1
-
Role: edxapp
-
Added
`EDXAPP_MONGO_READ_PREFERENCE`
,
`EDXAPP_MONGO_MODULESTORE_READ_PREFERENCE`
and
`EDXAPP_MONGO_CONTENTSTORE_READ_PREFERENCE`
to control MongoDB read
preference. If unset
`EDXAPP_MONGO_MODULESTORE_READ_PREFERENCE`
and
`EDXAPP_MONGO_CONTENTSTORE_READ_PREFERENCE`
take the value of
`EDXAPP_MONGO_READ_PREFERENCE`
, which is SECONDARY_PREFERED by
default.
-
Role: server_utils
-
Install "vim", not "vim-tiny".
...
...
playbooks/roles/edxapp/defaults/main.yml
View file @
a72becb1
...
...
@@ -71,6 +71,9 @@ EDXAPP_MONGO_PORT: 27017
EDXAPP_MONGO_USER
:
'
edxapp'
EDXAPP_MONGO_DB_NAME
:
'
edxapp'
EDXAPP_MONGO_USE_SSL
:
False
EDXAPP_MONGO_READ_PREFERENCE
:
'
SECONDARY_PREFERRED'
EDXAPP_MONGO_MODULESTORE_READ_PREFERENCE
:
"
{{
EDXAPP_MONGO_READ_PREFERENCE
}}"
EDXAPP_MONGO_CONTENTSTORE_READ_PREFERENCE
:
"
{{
EDXAPP_MONGO_READ_PREFERENCE
}}"
EDXAPP_MYSQL_DB_NAME
:
'
edxapp'
EDXAPP_MYSQL_USER
:
'
edxapp001'
...
...
@@ -851,6 +854,7 @@ edxapp_generic_doc_store_config: &edxapp_generic_default_docstore
user
:
"
{{
EDXAPP_MONGO_USER
}}"
collection
:
'
modulestore'
ssl
:
"
{{
EDXAPP_MONGO_USE_SSL
}}"
read_preference
:
"
{{
EDXAPP_MONGO_MODULESTORE_READ_PREFERENCE
}}"
# https://api.mongodb.com/python/2.9.1/api/pymongo/mongo_client.html#module-pymongo.mongo_client
socketTimeoutMS
:
3000
# default is never timeout while the connection is open, this means it needs to explicitly close raising pymongo.errors.NetworkTimeout
connectTimeoutMS
:
2000
# default is 20000, I believe raises pymongo.errors.ConnectionFailure
...
...
@@ -937,6 +941,7 @@ edxapp_generic_auth_config: &edxapp_generic_auth
port
:
"
{{
EDXAPP_MONGO_PORT
}}"
user
:
"
{{
EDXAPP_MONGO_USER
}}"
ssl
:
"
{{
EDXAPP_MONGO_USE_SSL
}}"
read_preference
:
"
{{
EDXAPP_MONGO_CONTENTSTORE_READ_PREFERENCE
}}"
ADDITIONAL_OPTIONS
:
"
{{
EDXAPP_CONTENTSTORE_ADDITIONAL_OPTS
}}"
DOC_STORE_CONFIG
:
*edxapp_generic_default_docstore
DATABASES
:
"
{{
edxapp_databases
}}"
...
...
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