mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
docs: added some clarification to the replica set setting
This commit is contained in:
parent
8ec2c6bc34
commit
be72875330
@ -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
|
## 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**
|
**Example using environment variables**
|
||||||
```text
|
```text
|
||||||
export BIGCHAINDB_DATABASE_BACKEND=rethinkdb
|
export BIGCHAINDB_DATABASE_BACKEND=mongodb
|
||||||
export BIGCHAINDB_DATABASE_HOST=localhost
|
export BIGCHAINDB_DATABASE_HOST=localhost
|
||||||
export BIGCHAINDB_DATABASE_PORT=28015
|
export BIGCHAINDB_DATABASE_PORT=27017
|
||||||
export BIGCHAINDB_DATABASE_NAME=bigchain
|
export BIGCHAINDB_DATABASE_NAME=bigchain
|
||||||
export BIGCHAINDB_DATABASE_REPLICASET=bigchain-rs
|
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**
|
**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:
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user