{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/comments/128540387","pull_request_review_id":51176623,"id":128540387,"diff_hunk":"@@ -47,37 +51,47 @@ See the [Amazon RDS documentation on the failover process](http://docs.aws.amazo\n \n You should test how your app deals with a failover to make sure you are benefiting from the high availability plan. We can trigger a failover for you. Please contact us at [gov-uk-paas-support@digital.cabinet-office.gov.uk](mailto:gov-uk-paas-support@digital.cabinet-office.gov.uk) to arrange this.\n \n-### Encrypted PostgreSQL plans\n+#### High availability plans - MongoDB\n+\n+MongoDB uses replica sets i.e. clusters of MongoDB servers that replicate the contents of the master database. Replica sets provide high availability through sharding, a method for distributing data across multiple machines. A shard is a single mongod instance or replica set that stores some portion of a sharded cluster’s total data set. In the standard configuration for MongoDB on Compose, you get a single-shard with three nodes in a replica-set. Mongo will push all write operations on to the primary data node and then propagate them to the secondary data node on the shard. Should the primary node fail, the secondary will be promoted to primary providing fault-tolerance and redundancy for your databases. The Mongo routers are responsible for dictating any failover, along with load-balancing operations to any of the nodes in the cluster.","path":"source/documentation/deploying_services/database_services.md","position":67,"original_position":67,"commit_id":"72929c04bbb4411d7d052f4bb0a36ed96498377f","original_commit_id":"72929c04bbb4411d7d052f4bb0a36ed96498377f","user":{"login":"chrisfarms","id":45921,"avatar_url":"https://avatars2.githubusercontent.com/u/45921?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisfarms","html_url":"https://github.com/chrisfarms","followers_url":"https://api.github.com/users/chrisfarms/followers","following_url":"https://api.github.com/users/chrisfarms/following{/other_user}","gists_url":"https://api.github.com/users/chrisfarms/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisfarms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisfarms/subscriptions","organizations_url":"https://api.github.com/users/chrisfarms/orgs","repos_url":"https://api.github.com/users/chrisfarms/repos","events_url":"https://api.github.com/users/chrisfarms/events{/privacy}","received_events_url":"https://api.github.com/users/chrisfarms/received_events","type":"User","site_admin":false},"body":"> Compose\r\n\r\nThis is the first and only mention of Compose. Should it be explained that mongo db is backed by Compose's offering? or at the very least this should be a link to Compose to give context.","created_at":"2017-07-20T15:00:00Z","updated_at":"2017-07-20T15:03:22Z","html_url":"https://github.com/alphagov/paas-tech-docs/pull/49#discussion_r128540387","pull_request_url":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/comments/128540387"},"html":{"href":"https://github.com/alphagov/paas-tech-docs/pull/49#discussion_r128540387"},"pull_request":{"href":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/49","id":130179503,"html_url":"https://github.com/alphagov/paas-tech-docs/pull/49","diff_url":"https://github.com/alphagov/paas-tech-docs/pull/49.diff","patch_url":"https://github.com/alphagov/paas-tech-docs/pull/49.patch","issue_url":"https://api.github.com/repos/alphagov/paas-tech-docs/issues/49","number":49,"state":"open","locked":false,"title":"MongoDB Beta Documentation","user":{"login":"jonathanglassman","id":29436951,"avatar_url":"https://avatars2.githubusercontent.com/u/29436951?v=4","gravatar_id":"","url":"https://api.github.com/users/jonathanglassman","html_url":"https://github.com/jonathanglassman","followers_url":"https://api.github.com/users/jonathanglassman/followers","following_url":"https://api.github.com/users/jonathanglassman/following{/other_user}","gists_url":"https://api.github.com/users/jonathanglassman/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanglassman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanglassman/subscriptions","organizations_url":"https://api.github.com/users/jonathanglassman/orgs","repos_url":"https://api.github.com/users/jonathanglassman/repos","events_url":"https://api.github.com/users/jonathanglassman/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanglassman/received_events","type":"User","site_admin":false},"body":"## What\r\n\r\nThis branch needs rebasing after https://github.com/alphagov/paas-tech-docs/pull/46 is merged. Added in information on self-signed certificates for MongoDB.\r\n\r\n## How to review\r\n\r\nRead and check it is accurately described.\r\n\r\n## Who can review\r\nDan Carley.\r\n","created_at":"2017-07-12T16:14:38Z","updated_at":"2017-07-20T15:03:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7277cd726aa134a5239e3445585df86e7299b41","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/49/commits","review_comments_url":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/49/comments","review_comment_url":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/paas-tech-docs/issues/49/comments","statuses_url":"https://api.github.com/repos/alphagov/paas-tech-docs/statuses/72929c04bbb4411d7d052f4bb0a36ed96498377f","head":{"label":"alphagov:mongodb-changes-only","ref":"mongodb-changes-only","sha":"72929c04bbb4411d7d052f4bb0a36ed96498377f","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":76549592,"name":"paas-tech-docs","full_name":"alphagov/paas-tech-docs","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/paas-tech-docs","description":"Technical documentation for PaaS.","fork":false,"url":"https://api.github.com/repos/alphagov/paas-tech-docs","forks_url":"https://api.github.com/repos/alphagov/paas-tech-docs/forks","keys_url":"https://api.github.com/repos/alphagov/paas-tech-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/paas-tech-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/paas-tech-docs/teams","hooks_url":"https://api.github.com/repos/alphagov/paas-tech-docs/hooks","issue_events_url":"https://api.github.com/repos/alphagov/paas-tech-docs/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/paas-tech-docs/events","assignees_url":"https://api.github.com/repos/alphagov/paas-tech-docs/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/paas-tech-docs/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/paas-tech-docs/tags","blobs_url":"https://api.github.com/repos/alphagov/paas-tech-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/paas-tech-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/paas-tech-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/paas-tech-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/paas-tech-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/paas-tech-docs/languages","stargazers_url":"https://api.github.com/repos/alphagov/paas-tech-docs/stargazers","contributors_url":"https://api.github.com/repos/alphagov/paas-tech-docs/contributors","subscribers_url":"https://api.github.com/repos/alphagov/paas-tech-docs/subscribers","subscription_url":"https://api.github.com/repos/alphagov/paas-tech-docs/subscription","commits_url":"https://api.github.com/repos/alphagov/paas-tech-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/paas-tech-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/paas-tech-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/paas-tech-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/paas-tech-docs/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/paas-tech-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/paas-tech-docs/merges","archive_url":"https://api.github.com/repos/alphagov/paas-tech-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/paas-tech-docs/downloads","issues_url":"https://api.github.com/repos/alphagov/paas-tech-docs/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/paas-tech-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/paas-tech-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/paas-tech-docs/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/paas-tech-docs/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/paas-tech-docs/deployments","created_at":"2016-12-15T10:23:28Z","updated_at":"2016-12-15T10:46:44Z","pushed_at":"2017-07-20T14:31:10Z","git_url":"git://github.com/alphagov/paas-tech-docs.git","ssh_url":"git@github.com:alphagov/paas-tech-docs.git","clone_url":"https://github.com/alphagov/paas-tech-docs.git","svn_url":"https://github.com/alphagov/paas-tech-docs","homepage":"","size":558,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"7a4e27450c90c687397992372e8768b5b16458b2","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":76549592,"name":"paas-tech-docs","full_name":"alphagov/paas-tech-docs","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/paas-tech-docs","description":"Technical documentation for PaaS.","fork":false,"url":"https://api.github.com/repos/alphagov/paas-tech-docs","forks_url":"https://api.github.com/repos/alphagov/paas-tech-docs/forks","keys_url":"https://api.github.com/repos/alphagov/paas-tech-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/paas-tech-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/paas-tech-docs/teams","hooks_url":"https://api.github.com/repos/alphagov/paas-tech-docs/hooks","issue_events_url":"https://api.github.com/repos/alphagov/paas-tech-docs/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/paas-tech-docs/events","assignees_url":"https://api.github.com/repos/alphagov/paas-tech-docs/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/paas-tech-docs/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/paas-tech-docs/tags","blobs_url":"https://api.github.com/repos/alphagov/paas-tech-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/paas-tech-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/paas-tech-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/paas-tech-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/paas-tech-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/paas-tech-docs/languages","stargazers_url":"https://api.github.com/repos/alphagov/paas-tech-docs/stargazers","contributors_url":"https://api.github.com/repos/alphagov/paas-tech-docs/contributors","subscribers_url":"https://api.github.com/repos/alphagov/paas-tech-docs/subscribers","subscription_url":"https://api.github.com/repos/alphagov/paas-tech-docs/subscription","commits_url":"https://api.github.com/repos/alphagov/paas-tech-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/paas-tech-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/paas-tech-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/paas-tech-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/paas-tech-docs/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/paas-tech-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/paas-tech-docs/merges","archive_url":"https://api.github.com/repos/alphagov/paas-tech-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/paas-tech-docs/downloads","issues_url":"https://api.github.com/repos/alphagov/paas-tech-docs/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/paas-tech-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/paas-tech-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/paas-tech-docs/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/paas-tech-docs/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/paas-tech-docs/deployments","created_at":"2016-12-15T10:23:28Z","updated_at":"2016-12-15T10:46:44Z","pushed_at":"2017-07-20T14:31:10Z","git_url":"git://github.com/alphagov/paas-tech-docs.git","ssh_url":"git@github.com:alphagov/paas-tech-docs.git","clone_url":"https://github.com/alphagov/paas-tech-docs.git","svn_url":"https://github.com/alphagov/paas-tech-docs","homepage":"","size":558,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/49"},"html":{"href":"https://github.com/alphagov/paas-tech-docs/pull/49"},"issue":{"href":"https://api.github.com/repos/alphagov/paas-tech-docs/issues/49"},"comments":{"href":"https://api.github.com/repos/alphagov/paas-tech-docs/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/paas-tech-docs/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/paas-tech-docs/statuses/72929c04bbb4411d7d052f4bb0a36ed96498377f"}}}}
{"actor":{"display_login":"chrisfarms"}}