Commit c2e8379d by Jillian Vogel

Defaults EDXAPP_MONGO_HOSTS to a comma-separated string list

parent 6aef3d79
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
- Added `EDXAPP_MONGO_REPLICA_SET`, which is required to use - Added `EDXAPP_MONGO_REPLICA_SET`, which is required to use
pymongo.MongoReplicaSetClient in PyMongo 2.9.1. This should be set to the pymongo.MongoReplicaSetClient in PyMongo 2.9.1. This should be set to the
name of your replica set. name of your replica set.
Note that setting `EDXAPP_MONGO_REPLICA_SET` requires `EDXAPP_MONGO_HOSTS`
to be a comma-delimited string listing the host names, not an array.
This setting causes the `EDXAPP_*_READ_PREFERENCE` settings below to be used. This setting causes the `EDXAPP_*_READ_PREFERENCE` settings below to be used.
- Added `EDXAPP_MONGO_CMS_READ_PREFERENCE` with a default value of `PRIMARY`. - Added `EDXAPP_MONGO_CMS_READ_PREFERENCE` with a default value of `PRIMARY`.
- Added `EDXAPP_MONGO_LMS_READ_PREFERENCE` with a default value of - Added `EDXAPP_MONGO_LMS_READ_PREFERENCE` with a default value of
......
...@@ -65,9 +65,8 @@ EDXAPP_XQUEUE_DJANGO_AUTH: ...@@ -65,9 +65,8 @@ EDXAPP_XQUEUE_DJANGO_AUTH:
password: 'password' password: 'password'
EDXAPP_XQUEUE_URL: 'http://localhost:18040' EDXAPP_XQUEUE_URL: 'http://localhost:18040'
# EDXAPP_MONGO_HOSTS must be a comma seperated list of hosts/ips for # Comma-separated list of hosts/ips
# compatibility with pymongo.MongoReplicaSetClient in PyMongo 2.9.1 EDXAPP_MONGO_HOSTS: 'localhost'
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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment