From be72875330fbd10b99b1c7d68c9dd1578f961626 Mon Sep 17 00:00:00 2001 From: Troy McConaghy Date: Sun, 19 Feb 2017 15:27:21 +0100 Subject: [PATCH] docs: added some clarification to the replica set setting --- docs/server/source/server-reference/configuration.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/server/source/server-reference/configuration.md b/docs/server/source/server-reference/configuration.md index 95db54dd..29431e82 100644 --- a/docs/server/source/server-reference/configuration.md +++ b/docs/server/source/server-reference/configuration.md @@ -77,19 +77,17 @@ Note how the keys in the list are separated by colons. ## database.backend, database.host, database.port, database.name & database.replicaset -The database backend to use (e.g. RethinkDB) and its hostname, port and name. +The database backend to use (`rethinkdb` or `mongodb`) and its hostname, port and name. If the database backend is `mongodb`, then there's a fifth setting: the name of the replica set. If the database backend is `rethinkdb`, you *can* set the name of the replica set, but it won't be used for anything. **Example using environment variables** ```text -export BIGCHAINDB_DATABASE_BACKEND=rethinkdb +export BIGCHAINDB_DATABASE_BACKEND=mongodb export BIGCHAINDB_DATABASE_HOST=localhost -export BIGCHAINDB_DATABASE_PORT=28015 +export BIGCHAINDB_DATABASE_PORT=27017 export BIGCHAINDB_DATABASE_NAME=bigchain export BIGCHAINDB_DATABASE_REPLICASET=bigchain-rs ``` -Note: If the backend database is RethinkDB, you *can* set `BIGCHAINDB_DATABASE_REPLICASET` but it won't be used for anything. - **Default values** If (no environment variables were set and there's no local config file), or you used `bigchaindb -y configure rethinkdb` to create a default local config file for a RethinkDB backend, then the defaults will be: