{"action":"created","issue":{"url":"https://api.github.com/repos/estebanlm/voyage/issues/28","repository_url":"https://api.github.com/repos/estebanlm/voyage","labels_url":"https://api.github.com/repos/estebanlm/voyage/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/estebanlm/voyage/issues/28/comments","events_url":"https://api.github.com/repos/estebanlm/voyage/issues/28/events","html_url":"https://github.com/estebanlm/voyage/issues/28","id":153174936,"number":28,"title":"Add ReplicationSet support","user":{"login":"tinchodias","id":3044265,"avatar_url":"https://avatars.githubusercontent.com/u/3044265?v=3","gravatar_id":"","url":"https://api.github.com/users/tinchodias","html_url":"https://github.com/tinchodias","followers_url":"https://api.github.com/users/tinchodias/followers","following_url":"https://api.github.com/users/tinchodias/following{/other_user}","gists_url":"https://api.github.com/users/tinchodias/gists{/gist_id}","starred_url":"https://api.github.com/users/tinchodias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinchodias/subscriptions","organizations_url":"https://api.github.com/users/tinchodias/orgs","repos_url":"https://api.github.com/users/tinchodias/repos","events_url":"https://api.github.com/users/tinchodias/events{/privacy}","received_events_url":"https://api.github.com/users/tinchodias/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-05T06:21:57Z","updated_at":"2016-05-12T05:30:11Z","closed_at":null,"body":"Voyage can take advantage of replication, an important feature in mongodb: https://docs.mongodb.org/manual/core/replication-introduction/\r\n\r\nI want to refine this issue in more concrete terms. For the moment, I just paste a small replica-set demo: The following are commands to create a test replica set and test it (generated from https://docs.mongodb.org/manual/tutorial/deploy-replica-set-for-testing/)\r\n\r\n\t# terminal 1\r\n\tmongod --port 27030 --dbpath some_path/testreplicationdb/rs0-0 --replSet rs0 --smallfiles --oplogSize 128\r\n\r\n\t# terminal 2\r\n\tmongod --port 27031 --dbpath some_path/testreplicationdb/rs0-1 --replSet rs0 --smallfiles --oplogSize 128\r\n\r\n\t# terminal 3\r\n\tmongod --port 27032 --dbpath some_path/testreplicationdb/rs0-2 --replSet rs0 --smallfiles --oplogSize 128\r\n\r\n\t# terminal 4\r\n\r\n\t# log in to primary\r\n\tmongo --port 27030 \r\n\trs.initiate() # make primary\r\n\trs.conf() #just to check\r\n\trs.add(\"my_host:27031\")\r\n\trs.add(\"my_host:27032\")\r\n\trs.status()  #just to check\r\n\t# add some data to primary\r\n\tdb.categories.insert( { _id: \"MongoDB\", parent: \"Databases\" } )\r\n\tdb.categories.insert( { _id: \"Languages\", parent: \"Programming\" } )\r\n\r\n\t#log in to a secondary\r\n\tmongo --port 27031 \r\n\trs.slaveOk() #make readable\r\n\tdb.categories.find() # gets:\r\n\t{ \"_id\" : \"MongoDB\", \"parent\" : \"Databases\" }\r\n\t{ \"_id\" : \"Languages\", \"parent\" : \"Programming\" }\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/estebanlm/voyage/issues/comments/218663839","html_url":"https://github.com/estebanlm/voyage/issues/28#issuecomment-218663839","issue_url":"https://api.github.com/repos/estebanlm/voyage/issues/28","id":218663839,"user":{"login":"tinchodias","id":3044265,"avatar_url":"https://avatars.githubusercontent.com/u/3044265?v=3","gravatar_id":"","url":"https://api.github.com/users/tinchodias","html_url":"https://github.com/tinchodias","followers_url":"https://api.github.com/users/tinchodias/followers","following_url":"https://api.github.com/users/tinchodias/following{/other_user}","gists_url":"https://api.github.com/users/tinchodias/gists{/gist_id}","starred_url":"https://api.github.com/users/tinchodias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinchodias/subscriptions","organizations_url":"https://api.github.com/users/tinchodias/orgs","repos_url":"https://api.github.com/users/tinchodias/repos","events_url":"https://api.github.com/users/tinchodias/events{/privacy}","received_events_url":"https://api.github.com/users/tinchodias/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T05:30:11Z","updated_at":"2016-05-12T05:30:11Z","body":"I added support to read [config](https://docs.mongodb.com/manual/reference/command/replSetGetConfig/) and [status](https://docs.mongodb.com/manual/reference/command/replSetGetStatus/) in MongoTalk. It's unfinished yet, but you can check `MongoReplicationTest` class comment and hierarchy if you want."}}