GitHub PullRequestEvent at 2014-08-15 13:22:21
Repository: pp-puppet
Actor: robyoung
Payload: {"action":"opened","number":555,"pull_request":{"url":"https://api.github.com/repos/alphagov/pp-puppet/pulls/555","id":19843590,"html_url":"https://github.com/alphagov/pp-puppet/pull/555","diff_url":"https://github.com/alphagov/pp-puppet/pull/555.diff","patch_url":"https://github.com/alphagov/pp-puppet/pull/555.patch","issue_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/555","number":555,"state":"open","locked":false,"title":"PostgreSQL streaming replication","user":{"login":"robyoung","id":14287,"avatar_url":"https://avatars.githubusercontent.com/u/14287?v=2","gravatar_id":"09cbeba69993bb82b3fc7b70926dfc4c","url":"https://api.github.com/users/robyoung","html_url":"https://github.com/robyoung","followers_url":"https://api.github.com/users/robyoung/followers","following_url":"https://api.github.com/users/robyoung/following{/other_user}","gists_url":"https://api.github.com/users/robyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/robyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robyoung/subscriptions","organizations_url":"https://api.github.com/users/robyoung/orgs","repos_url":"https://api.github.com/users/robyoung/repos","events_url":"https://api.github.com/users/robyoung/events{/privacy}","received_events_url":"https://api.github.com/users/robyoung/received_events","type":"User","site_admin":false},"body":"This sets up a 'hot standby' PostgreSQL secondary with streaming replication. This is the closest thing to MySQL bin log replication.\r\n\r\nThis includes:\r\n- Add and configure a postgres secondary\r\n- Add replication config to postgres primary\r\n- Factor out postgres stuff into it's own module\r\n- Add a script to initialise a new secondary\r\n\r\nThis does not include:\r\n- Metrics for a postgres server (we currently do not have this for our primary)\r\n- Metrics for posgres replication\r\n- Monitoring / alerting for a postgres server\r\n- Monitoring / alerting for postgres replication status\r\n\r\nReference:\r\nhttps://wiki.postgresql.org/wiki/Binary_Replication_Tutorial - general replication tutorial\r\nhttps://wiki.postgresql.org/wiki/Hot_Standby - documents the `pg_basebackup` command\r\nhttps://wiki.postgresql.org/wiki/Streaming_Replication - more detailed docs on streaming replication","created_at":"2014-08-15T13:22:21Z","updated_at":"2014-08-15T13:22:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/pp-puppet/pulls/555/commits","review_comments_url":"https://api.github.com/repos/alphagov/pp-puppet/pulls/555/comments","review_comment_url":"https://api.github.com/repos/alphagov/pp-puppet/pulls/comments/{number}","comments_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/555/comments","statuses_url":"https://api.github.com/repos/alphagov/pp-puppet/statuses/b482e8f1a929c4b9c1c4eb0f26f475c8d19606d9","head":{"label":"alphagov:feature/postgres-replication","ref":"feature/postgres-replication","sha":"b482e8f1a929c4b9c1c4eb0f26f475c8d19606d9","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=2","gravatar_id":"5618b843830194a2475a6e48823f7455","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":10238423,"name":"pp-puppet","full_name":"alphagov/pp-puppet","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=2","gravatar_id":"5618b843830194a2475a6e48823f7455","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/pp-puppet","description":"Contains the Puppet code to provision environments for Performance Platform","fork":false,"url":"https://api.github.com/repos/alphagov/pp-puppet","forks_url":"https://api.github.com/repos/alphagov/pp-puppet/forks","keys_url":"https://api.github.com/repos/alphagov/pp-puppet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/pp-puppet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/pp-puppet/teams","hooks_url":"https://api.github.com/repos/alphagov/pp-puppet/hooks","issue_events_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/pp-puppet/events","assignees_url":"https://api.github.com/repos/alphagov/pp-puppet/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/pp-puppet/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/pp-puppet/tags","blobs_url":"https://api.github.com/repos/alphagov/pp-puppet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/pp-puppet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/pp-puppet/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/pp-puppet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/pp-puppet/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/pp-puppet/languages","stargazers_url":"https://api.github.com/repos/alphagov/pp-puppet/stargazers","contributors_url":"https://api.github.com/repos/alphagov/pp-puppet/contributors","subscribers_url":"https://api.github.com/repos/alphagov/pp-puppet/subscribers","subscription_url":"https://api.github.com/repos/alphagov/pp-puppet/subscription","commits_url":"https://api.github.com/repos/alphagov/pp-puppet/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/pp-puppet/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/pp-puppet/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/comments/{number}","contents_url":"https://api.github.com/repos/alphagov/pp-puppet/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/pp-puppet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/pp-puppet/merges","archive_url":"https://api.github.com/repos/alphagov/pp-puppet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/pp-puppet/downloads","issues_url":"https://api.github.com/repos/alphagov/pp-puppet/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/pp-puppet/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/pp-puppet/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/pp-puppet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/pp-puppet/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/pp-puppet/releases{/id}","created_at":"2013-05-23T07:37:37Z","updated_at":"2014-08-09T16:02:10Z","pushed_at":"2014-08-15T11:29:54Z","git_url":"git://github.com/alphagov/pp-puppet.git","ssh_url":"git@github.com:alphagov/pp-puppet.git","clone_url":"https://github.com/alphagov/pp-puppet.git","svn_url":"https://github.com/alphagov/pp-puppet","homepage":"","size":75560,"stargazers_count":10,"watchers_count":10,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":10,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"1243ce510ae13eaef47b9802d2d03cab54eaa661","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=2","gravatar_id":"5618b843830194a2475a6e48823f7455","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":10238423,"name":"pp-puppet","full_name":"alphagov/pp-puppet","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=2","gravatar_id":"5618b843830194a2475a6e48823f7455","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/pp-puppet","description":"Contains the Puppet code to provision environments for Performance Platform","fork":false,"url":"https://api.github.com/repos/alphagov/pp-puppet","forks_url":"https://api.github.com/repos/alphagov/pp-puppet/forks","keys_url":"https://api.github.com/repos/alphagov/pp-puppet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/pp-puppet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/pp-puppet/teams","hooks_url":"https://api.github.com/repos/alphagov/pp-puppet/hooks","issue_events_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/pp-puppet/events","assignees_url":"https://api.github.com/repos/alphagov/pp-puppet/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/pp-puppet/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/pp-puppet/tags","blobs_url":"https://api.github.com/repos/alphagov/pp-puppet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/pp-puppet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/pp-puppet/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/pp-puppet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/pp-puppet/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/pp-puppet/languages","stargazers_url":"https://api.github.com/repos/alphagov/pp-puppet/stargazers","contributors_url":"https://api.github.com/repos/alphagov/pp-puppet/contributors","subscribers_url":"https://api.github.com/repos/alphagov/pp-puppet/subscribers","subscription_url":"https://api.github.com/repos/alphagov/pp-puppet/subscription","commits_url":"https://api.github.com/repos/alphagov/pp-puppet/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/pp-puppet/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/pp-puppet/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/comments/{number}","contents_url":"https://api.github.com/repos/alphagov/pp-puppet/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/pp-puppet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/pp-puppet/merges","archive_url":"https://api.github.com/repos/alphagov/pp-puppet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/pp-puppet/downloads","issues_url":"https://api.github.com/repos/alphagov/pp-puppet/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/pp-puppet/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/pp-puppet/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/pp-puppet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/pp-puppet/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/pp-puppet/releases{/id}","created_at":"2013-05-23T07:37:37Z","updated_at":"2014-08-09T16:02:10Z","pushed_at":"2014-08-15T11:29:54Z","git_url":"git://github.com/alphagov/pp-puppet.git","ssh_url":"git@github.com:alphagov/pp-puppet.git","clone_url":"https://github.com/alphagov/pp-puppet.git","svn_url":"https://github.com/alphagov/pp-puppet","homepage":"","size":75560,"stargazers_count":10,"watchers_count":10,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/pp-puppet/pulls/555"},"html":{"href":"https://github.com/alphagov/pp-puppet/pull/555"},"issue":{"href":"https://api.github.com/repos/alphagov/pp-puppet/issues/555"},"comments":{"href":"https://api.github.com/repos/alphagov/pp-puppet/issues/555/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/pp-puppet/pulls/555/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/pp-puppet/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/alphagov/pp-puppet/pulls/555/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/pp-puppet/statuses/b482e8f1a929c4b9c1c4eb0f26f475c8d19606d9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":137,"deletions":17,"changed_files":11}}