{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1867","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1867/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1867/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1867/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/1867","id":126178689,"number":1867,"title":"Rocket.Chat on mongo replica set and read/write preference consequences","user":{"login":"georgiosd","id":1672054,"avatar_url":"https://avatars.githubusercontent.com/u/1672054?v=3","gravatar_id":"","url":"https://api.github.com/users/georgiosd","html_url":"https://github.com/georgiosd","followers_url":"https://api.github.com/users/georgiosd/followers","following_url":"https://api.github.com/users/georgiosd/following{/other_user}","gists_url":"https://api.github.com/users/georgiosd/gists{/gist_id}","starred_url":"https://api.github.com/users/georgiosd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgiosd/subscriptions","organizations_url":"https://api.github.com/users/georgiosd/orgs","repos_url":"https://api.github.com/users/georgiosd/repos","events_url":"https://api.github.com/users/georgiosd/events{/privacy}","received_events_url":"https://api.github.com/users/georgiosd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/subj:%20deployment","name":"subj: deployment","color":"5319e7"},{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/type:%20discussion","name":"type: discussion","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2016-01-12T13:23:07Z","updated_at":"2016-01-14T11:36:35Z","closed_at":null,"body":"Hey all,\r\n\r\nWe have recently deployed RocketChat to a 2 node+arbiter mongo setup. Both nodes have a single meteor instance and are in front of a load balancer and the arbiter is a smaller VM there for voting purposes only. \r\n\r\nI have currently set the RS read preference to `nearest` and write preference to `majority` thinking that it's optimal in terms of guaranteeing writes and it helps balance the database load on the reads with some presumably minor latency effect.\r\n\r\nAny thoughts on this setup for or against?\r\n\r\nThanks\r\nGeorgios\r\n"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/171619411","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/1867#issuecomment-171619411","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1867","id":171619411,"user":{"login":"Sing-Li","id":122633,"avatar_url":"https://avatars.githubusercontent.com/u/122633?v=3","gravatar_id":"","url":"https://api.github.com/users/Sing-Li","html_url":"https://github.com/Sing-Li","followers_url":"https://api.github.com/users/Sing-Li/followers","following_url":"https://api.github.com/users/Sing-Li/following{/other_user}","gists_url":"https://api.github.com/users/Sing-Li/gists{/gist_id}","starred_url":"https://api.github.com/users/Sing-Li/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sing-Li/subscriptions","organizations_url":"https://api.github.com/users/Sing-Li/orgs","repos_url":"https://api.github.com/users/Sing-Li/repos","events_url":"https://api.github.com/users/Sing-Li/events{/privacy}","received_events_url":"https://api.github.com/users/Sing-Li/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T11:36:35Z","updated_at":"2016-01-14T11:36:35Z","body":"Great idea.   Please submit a PR here, with an Azure subdirectory.  \r\n\r\nhttps://github.com/RocketChat/Deploy.to.Cloud\r\n\r\nre: environment testing.  If you mean different networking/clustering topologies and **_automated_**, I think we might be a generation away yet in terms of capabilities and resources available.  k8s and docker swarm hold some promise, albiet still semi-simulation.  It is only in distributed load testing - where Rocket.Chat can possibly deliver some breakthroughs as the command and payload switching fabric.\r\n\r\nUnit and integration testing are not only in our plans, but (some) already in our existing source code.  It is no secret that testing is the Achilles heel of Meteor based reactive systems in general;  we're ready for MDG's new testing integration in 2016 when it becomes ready."}}