Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 229f000ec7

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

..
Octocat-spinner-32 src
Octocat-spinner-32 ReadMe.md
Octocat-spinner-32 pom.xml
ReadMe.md

Kool MongoDb

Kool MongoDb provides

Using Replica Sets

MongoDb uses Replica Sets to be able to replicate changes from a master to slaves or other masters.

To enable replicate sets run mongodb with the --replSet option specified.

mongod --replSet foo

Then in the mongo command shell type somethign like this: (depending on how many members you wish to define in your replicate set and where your master is)

config = {_id: 'foo', members: [{_id: 0, host: 'localhost:27017'}] }
rs.initiate(config);
Something went wrong with that request. Please try again.