{"action":"closed","number":84,"pull_request":{"url":"https://api.github.com/repos/alphagov/tsuru-terraform/pulls/84","id":40144337,"html_url":"https://github.com/alphagov/tsuru-terraform/pull/84","diff_url":"https://github.com/alphagov/tsuru-terraform/pull/84.diff","patch_url":"https://github.com/alphagov/tsuru-terraform/pull/84.patch","issue_url":"https://api.github.com/repos/alphagov/tsuru-terraform/issues/84","number":84,"state":"closed","locked":false,"title":"[#98371938] Add second postgres server","user":{"login":"mtekel","id":483891,"avatar_url":"https://avatars.githubusercontent.com/u/483891?v=3","gravatar_id":"","url":"https://api.github.com/users/mtekel","html_url":"https://github.com/mtekel","followers_url":"https://api.github.com/users/mtekel/followers","following_url":"https://api.github.com/users/mtekel/following{/other_user}","gists_url":"https://api.github.com/users/mtekel/gists{/gist_id}","starred_url":"https://api.github.com/users/mtekel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtekel/subscriptions","organizations_url":"https://api.github.com/users/mtekel/orgs","repos_url":"https://api.github.com/users/mtekel/repos","events_url":"https://api.github.com/users/mtekel/events{/privacy}","received_events_url":"https://api.github.com/users/mtekel/received_events","type":"User","site_admin":false},"body":"Add second postgres server. On the initial deploy it is configured to become standby, replicating from bucket and streaming WAL log from master. However both servers are equal VM-wise and if needed standby can be promoted to master - this is solved outside this repo.\r\n\r\nWe also fix unnecessary forward slash in the GCE ssh key file definition.","created_at":"2015-07-16T15:49:10Z","updated_at":"2015-07-20T13:30:44Z","closed_at":"2015-07-20T13:30:44Z","merged_at":"2015-07-20T13:30:44Z","merge_commit_sha":"4a64f30bfa6b3a667515c0611f4088030fb26b15","assignee":{"login":"keymon","id":280032,"avatar_url":"https://avatars.githubusercontent.com/u/280032?v=3","gravatar_id":"","url":"https://api.github.com/users/keymon","html_url":"https://github.com/keymon","followers_url":"https://api.github.com/users/keymon/followers","following_url":"https://api.github.com/users/keymon/following{/other_user}","gists_url":"https://api.github.com/users/keymon/gists{/gist_id}","starred_url":"https://api.github.com/users/keymon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keymon/subscriptions","organizations_url":"https://api.github.com/users/keymon/orgs","repos_url":"https://api.github.com/users/keymon/repos","events_url":"https://api.github.com/users/keymon/events{/privacy}","received_events_url":"https://api.github.com/users/keymon/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/tsuru-terraform/pulls/84/commits","review_comments_url":"https://api.github.com/repos/alphagov/tsuru-terraform/pulls/84/comments","review_comment_url":"https://api.github.com/repos/alphagov/tsuru-terraform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/tsuru-terraform/issues/84/comments","statuses_url":"https://api.github.com/repos/alphagov/tsuru-terraform/statuses/c13663920aadcccde9873c00460a08e837e51b1a","head":{"label":"alphagov:postgres-standby","ref":"postgres-standby","sha":"c13663920aadcccde9873c00460a08e837e51b1a","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","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":33175984,"name":"tsuru-terraform","full_name":"alphagov/tsuru-terraform","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","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/tsuru-terraform","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/tsuru-terraform","forks_url":"https://api.github.com/repos/alphagov/tsuru-terraform/forks","keys_url":"https://api.github.com/repos/alphagov/tsuru-terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/tsuru-terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/tsuru-terraform/teams","hooks_url":"https://api.github.com/repos/alphagov/tsuru-terraform/hooks","issue_events_url":"https://api.github.com/repos/alphagov/tsuru-terraform/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/tsuru-terraform/events","assignees_url":"https://api.github.com/repos/alphagov/tsuru-terraform/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/tsuru-terraform/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/tsuru-terraform/tags","blobs_url":"https://api.github.com/repos/alphagov/tsuru-terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/tsuru-terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/tsuru-terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/tsuru-terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/tsuru-terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/tsuru-terraform/languages","stargazers_url":"https://api.github.com/repos/alphagov/tsuru-terraform/stargazers","contributors_url":"https://api.github.com/repos/alphagov/tsuru-terraform/contributors","subscribers_url":"https://api.github.com/repos/alphagov/tsuru-terraform/subscribers","subscription_url":"https://api.github.com/repos/alphagov/tsuru-terraform/subscription","commits_url":"https://api.github.com/repos/alphagov/tsuru-terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/tsuru-terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/tsuru-terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/tsuru-terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/tsuru-terraform/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/tsuru-terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/tsuru-terraform/merges","archive_url":"https://api.github.com/repos/alphagov/tsuru-terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/tsuru-terraform/downloads","issues_url":"https://api.github.com/repos/alphagov/tsuru-terraform/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/tsuru-terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/tsuru-terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/tsuru-terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/tsuru-terraform/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/tsuru-terraform/releases{/id}","created_at":"2015-03-31T09:11:47Z","updated_at":"2015-07-13T09:55:48Z","pushed_at":"2015-07-20T13:30:44Z","git_url":"git://github.com/alphagov/tsuru-terraform.git","ssh_url":"git@github.com:alphagov/tsuru-terraform.git","clone_url":"https://github.com/alphagov/tsuru-terraform.git","svn_url":"https://github.com/alphagov/tsuru-terraform","homepage":null,"size":1145,"stargazers_count":13,"watchers_count":13,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":13,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"5061ff3e6d6e9fae17cc4bbb46459a4af52f1ed5","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","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":33175984,"name":"tsuru-terraform","full_name":"alphagov/tsuru-terraform","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","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/tsuru-terraform","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/tsuru-terraform","forks_url":"https://api.github.com/repos/alphagov/tsuru-terraform/forks","keys_url":"https://api.github.com/repos/alphagov/tsuru-terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/tsuru-terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/tsuru-terraform/teams","hooks_url":"https://api.github.com/repos/alphagov/tsuru-terraform/hooks","issue_events_url":"https://api.github.com/repos/alphagov/tsuru-terraform/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/tsuru-terraform/events","assignees_url":"https://api.github.com/repos/alphagov/tsuru-terraform/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/tsuru-terraform/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/tsuru-terraform/tags","blobs_url":"https://api.github.com/repos/alphagov/tsuru-terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/tsuru-terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/tsuru-terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/tsuru-terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/tsuru-terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/tsuru-terraform/languages","stargazers_url":"https://api.github.com/repos/alphagov/tsuru-terraform/stargazers","contributors_url":"https://api.github.com/repos/alphagov/tsuru-terraform/contributors","subscribers_url":"https://api.github.com/repos/alphagov/tsuru-terraform/subscribers","subscription_url":"https://api.github.com/repos/alphagov/tsuru-terraform/subscription","commits_url":"https://api.github.com/repos/alphagov/tsuru-terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/tsuru-terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/tsuru-terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/tsuru-terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/tsuru-terraform/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/tsuru-terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/tsuru-terraform/merges","archive_url":"https://api.github.com/repos/alphagov/tsuru-terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/tsuru-terraform/downloads","issues_url":"https://api.github.com/repos/alphagov/tsuru-terraform/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/tsuru-terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/tsuru-terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/tsuru-terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/tsuru-terraform/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/tsuru-terraform/releases{/id}","created_at":"2015-03-31T09:11:47Z","updated_at":"2015-07-13T09:55:48Z","pushed_at":"2015-07-20T13:30:44Z","git_url":"git://github.com/alphagov/tsuru-terraform.git","ssh_url":"git@github.com:alphagov/tsuru-terraform.git","clone_url":"https://github.com/alphagov/tsuru-terraform.git","svn_url":"https://github.com/alphagov/tsuru-terraform","homepage":null,"size":1145,"stargazers_count":13,"watchers_count":13,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/tsuru-terraform/pulls/84"},"html":{"href":"https://github.com/alphagov/tsuru-terraform/pull/84"},"issue":{"href":"https://api.github.com/repos/alphagov/tsuru-terraform/issues/84"},"comments":{"href":"https://api.github.com/repos/alphagov/tsuru-terraform/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/tsuru-terraform/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/tsuru-terraform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/tsuru-terraform/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/tsuru-terraform/statuses/c13663920aadcccde9873c00460a08e837e51b1a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"keymon","id":280032,"avatar_url":"https://avatars.githubusercontent.com/u/280032?v=3","gravatar_id":"","url":"https://api.github.com/users/keymon","html_url":"https://github.com/keymon","followers_url":"https://api.github.com/users/keymon/followers","following_url":"https://api.github.com/users/keymon/following{/other_user}","gists_url":"https://api.github.com/users/keymon/gists{/gist_id}","starred_url":"https://api.github.com/users/keymon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keymon/subscriptions","organizations_url":"https://api.github.com/users/keymon/orgs","repos_url":"https://api.github.com/users/keymon/repos","events_url":"https://api.github.com/users/keymon/events{/privacy}","received_events_url":"https://api.github.com/users/keymon/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":7,"additions":23,"deletions":25,"changed_files":13}}