ingenuitas/SimpleSeer — pull request #182 by rick446 (2012-07-06 18:38:59+00:00)
Title: Closes #176

You need to add the following to your .cfg file to get replication set up. Note that for the topology, the 2 server names *must* be "local" and "cloud". The "id" values don't matter so much as long as they're distinct UUIDs.

You can choose to set the direction of replication "up", "down", or "bidi"

~~~~
...
"replicate": {
"topology": {
"local": {
"id": "0d9c284b-b47c-40b5-932c-547b8685edd0",
"uri": "mongodb://localhost:27017"
},
"cloud": {
"id": "2c88ae84-7cb9-40f7-835d-c05e981f564d",
"uri": "mongodb://localhost:27019"
}
},
"replication": [
{ "ns": "chart", "dir": "bidi", "ops": "iud" },
{ "ns": "clip", "dir": "bidi", "ops": "iud" },
{ "ns": "frame", "dir": "bidi", "ops": "iud" },
{ "ns": "frame_set", "dir": "bidi", "ops": "iud" },
{ "ns": "fs.chunks", "dir": "bidi", "ops": "iud" },
{ "ns": "fs.files", "dir": "bidi", "ops": "iud" },
{ "ns": "inspection", "dir": "bidi", "ops": "iud" },
{ "ns": "measurement", "dir": "bidi", "ops": "iud" },
{ "ns": "o_l_a_p", "dir": "bidi", "ops": "iud" },
{ "ns": "result", "dir": "bidi", "ops": "iud" },
{ "ns": "watcher", "dir": "bidi", "ops": "iud" }
]
},
...
~~~~