Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Compare: Configuration

Showing with 1 addition and 12 deletions.
  1. +1 −12 Configuration.md
View
13 Configuration.md
@@ -37,6 +37,7 @@ The rest of the configuration options go in the <code>boss</code> config stanza.
* **pgsql** - [PostgreSQL](https://github.com/wg/epgsql)
* **riak** - [Riak](https://github.com/basho/riak-erlang-client)
* **tyrant** - Tokyo Tyrant
+* **db_replication_set [[MongoDB Adapter]]
* **db_write_mode** and **db_read_mode** - Options specific to the [[MongoDB Adapter]]
* **db_shards** - A list of proplists with per-shard database configuration. The proplists override the above options, and should contain two additional options:
* **db_shard_models** - A list of models (atoms) which are stored on the shard.
@@ -55,18 +56,6 @@ The rest of the configuration options go in the <code>boss</code> config stanza.
]
]}</pre></code>
-In case you're using a MongoDB replSet, you are in luck! Boss_db can be configured to use a replSet like this
-<code><pre>
- {db_adapter, mongodb},
- {db_replication_set, {<<"rs0">>, [{localhost, 27017}, {localhost, 27018}, {localhost, 27019}]}},
- {db_read_mode, slave_ok},
-</pre></ode>
-
-Replace "rs0" with the name of your [replSet](http://docs.mongodb.org/manual/replication/) and exchange "localhost" for the server running your MongoDB replSet members.
-The option for db_read_mode allows for reading from the slaves vs. reading from the master.
-Keep in mind that depending on the location of the slaves it might be that you're getting old data.
-If you NEED 100% accurate data on read, use "master" instead of "slave_ok".
-
## Logging
* **log_dir** - Directory in which to keep log files. Location is relative to the project directory. Defaults to "log".
Something went wrong with that request. Please try again.