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
15085bb3
Unverified
Commit
15085bb3
authored
Nov 13, 2017
by
Joseph Mulloy
Committed by
GitHub
Nov 13, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4203 from edx/jdmulloy/revert_mongo_secondaries
Revert "Add mongo read preference OPS-2440"
parents
1f426004
a65221e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
CHANGELOG.md
+0
-9
playbooks/roles/edxapp/defaults/main.yml
+0
-5
No files found.
CHANGELOG.md
View file @
15085bb3
-
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 @
15085bb3
...
...
@@ -71,9 +71,6 @@ 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'
...
...
@@ -854,7 +851,6 @@ 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
...
...
@@ -941,7 +937,6 @@ 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