{"action":"closed","number":48,"pull_request":{"url":"https://api.github.com/repos/alphagov/cf-terraform/pulls/48","id":47433602,"html_url":"https://github.com/alphagov/cf-terraform/pull/48","diff_url":"https://github.com/alphagov/cf-terraform/pull/48.diff","patch_url":"https://github.com/alphagov/cf-terraform/pull/48.patch","issue_url":"https://api.github.com/repos/alphagov/cf-terraform/issues/48","number":48,"state":"closed","locked":false,"title":"Increase the ELB idle timeout to 300 seconds.","user":{"login":"jimconner","id":9944861,"avatar_url":"https://avatars.githubusercontent.com/u/9944861?v=3","gravatar_id":"","url":"https://api.github.com/users/jimconner","html_url":"https://github.com/jimconner","followers_url":"https://api.github.com/users/jimconner/followers","following_url":"https://api.github.com/users/jimconner/following{/other_user}","gists_url":"https://api.github.com/users/jimconner/gists{/gist_id}","starred_url":"https://api.github.com/users/jimconner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimconner/subscriptions","organizations_url":"https://api.github.com/users/jimconner/orgs","repos_url":"https://api.github.com/users/jimconner/repos","events_url":"https://api.github.com/users/jimconner/events{/privacy}","received_events_url":"https://api.github.com/users/jimconner/received_events","type":"User","site_admin":false},"body":"[Postgres-cf-service-broker fails to start](https://www.pivotaltracker.com/n/projects/1275640/stories/105214754)\r\n\r\n**What**\r\nThe AWS elstic load balancer will timeout connections after a number\r\nof seconds of inactivity. By default this is set to 60 seconds, but this\r\nwas causing problems with the deployment of the postgresql-service-broker\r\nwhen pushing the app to a freshly deployed CF.\r\n\r\nAfter investigation, it was found that there is a long period of inactivity\r\nbetween the CF CLI client and the API server whilst the DEA downloaded and\r\nunpacked the buildpacks required by the psql broker. It appears that we need\r\nto allow at least 157 seconds for these buildpack steps to complete the first\r\ntime.\r\n\r\nIncreasing the AWS ELB idle_timeout up to 300 seconds allows for all of the\r\nbuildpack steps to complete, and allows the psql broker to deploy without\r\nerror.\r\n\r\n**How this PR should be reviewed**\r\n\r\nThis PR should reviewed in the following context:\r\n\r\n* I want deployment to AWS to succeed without hitting the error:\r\n\r\n```Error performing request: Put https://api.psqlbug.cf.paas.alphagov.co.uk/v2/apps/62f02443-75b5-4d2d-8df4-d0a23d5f38cd?async=true&inline-relations-depth=1: http: Request.ContentLength=19 with Body length 0```\r\n\r\n**How to test this PR**\r\n\r\nDeploy to AWS as normal using a `make aws DEPLOY_ENV=<some_evironment_name>`\r\n\r\n**Who should review this PR**\r\n\r\nAnyone on the core team except for @jimconner\r\n\r\n**Notes**\r\n\r\nThis fix has been tested only one time before raising this PR - Ideally I'd like to test it again with a full deployment, but as we're all hitting this bug at the moment, I'm doing a PR early so that we can all test.","created_at":"2015-10-12T15:36:01Z","updated_at":"2015-10-12T15:57:20Z","closed_at":"2015-10-12T15:57:20Z","merged_at":"2015-10-12T15:57:20Z","merge_commit_sha":"c8ffbb3005a0d218de4e14cc4cba53e6cab67cc2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/cf-terraform/pulls/48/commits","review_comments_url":"https://api.github.com/repos/alphagov/cf-terraform/pulls/48/comments","review_comment_url":"https://api.github.com/repos/alphagov/cf-terraform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/cf-terraform/issues/48/comments","statuses_url":"https://api.github.com/repos/alphagov/cf-terraform/statuses/4a7191d4330a59e7676c8ae3c449f0b2cfd84c3e","head":{"label":"alphagov:105214754_psql_timeout_bug","ref":"105214754_psql_timeout_bug","sha":"4a7191d4330a59e7676c8ae3c449f0b2cfd84c3e","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":40550513,"name":"cf-terraform","full_name":"alphagov/cf-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/cf-terraform","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/cf-terraform","forks_url":"https://api.github.com/repos/alphagov/cf-terraform/forks","keys_url":"https://api.github.com/repos/alphagov/cf-terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/cf-terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/cf-terraform/teams","hooks_url":"https://api.github.com/repos/alphagov/cf-terraform/hooks","issue_events_url":"https://api.github.com/repos/alphagov/cf-terraform/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/cf-terraform/events","assignees_url":"https://api.github.com/repos/alphagov/cf-terraform/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/cf-terraform/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/cf-terraform/tags","blobs_url":"https://api.github.com/repos/alphagov/cf-terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/cf-terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/cf-terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/cf-terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/cf-terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/cf-terraform/languages","stargazers_url":"https://api.github.com/repos/alphagov/cf-terraform/stargazers","contributors_url":"https://api.github.com/repos/alphagov/cf-terraform/contributors","subscribers_url":"https://api.github.com/repos/alphagov/cf-terraform/subscribers","subscription_url":"https://api.github.com/repos/alphagov/cf-terraform/subscription","commits_url":"https://api.github.com/repos/alphagov/cf-terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/cf-terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/cf-terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/cf-terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/cf-terraform/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/cf-terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/cf-terraform/merges","archive_url":"https://api.github.com/repos/alphagov/cf-terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/cf-terraform/downloads","issues_url":"https://api.github.com/repos/alphagov/cf-terraform/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/cf-terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/cf-terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/cf-terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/cf-terraform/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/cf-terraform/releases{/id}","created_at":"2015-08-11T15:42:03Z","updated_at":"2015-09-22T15:23:01Z","pushed_at":"2015-10-12T15:57:20Z","git_url":"git://github.com/alphagov/cf-terraform.git","ssh_url":"git@github.com:alphagov/cf-terraform.git","clone_url":"https://github.com/alphagov/cf-terraform.git","svn_url":"https://github.com/alphagov/cf-terraform","homepage":null,"size":1660,"stargazers_count":0,"watchers_count":0,"language":"HCL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"0ee7fb49e27144f189204ed34295afae04eee52e","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":40550513,"name":"cf-terraform","full_name":"alphagov/cf-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/cf-terraform","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/cf-terraform","forks_url":"https://api.github.com/repos/alphagov/cf-terraform/forks","keys_url":"https://api.github.com/repos/alphagov/cf-terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/cf-terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/cf-terraform/teams","hooks_url":"https://api.github.com/repos/alphagov/cf-terraform/hooks","issue_events_url":"https://api.github.com/repos/alphagov/cf-terraform/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/cf-terraform/events","assignees_url":"https://api.github.com/repos/alphagov/cf-terraform/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/cf-terraform/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/cf-terraform/tags","blobs_url":"https://api.github.com/repos/alphagov/cf-terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/cf-terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/cf-terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/cf-terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/cf-terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/cf-terraform/languages","stargazers_url":"https://api.github.com/repos/alphagov/cf-terraform/stargazers","contributors_url":"https://api.github.com/repos/alphagov/cf-terraform/contributors","subscribers_url":"https://api.github.com/repos/alphagov/cf-terraform/subscribers","subscription_url":"https://api.github.com/repos/alphagov/cf-terraform/subscription","commits_url":"https://api.github.com/repos/alphagov/cf-terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/cf-terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/cf-terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/cf-terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/cf-terraform/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/cf-terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/cf-terraform/merges","archive_url":"https://api.github.com/repos/alphagov/cf-terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/cf-terraform/downloads","issues_url":"https://api.github.com/repos/alphagov/cf-terraform/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/cf-terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/cf-terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/cf-terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/cf-terraform/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/cf-terraform/releases{/id}","created_at":"2015-08-11T15:42:03Z","updated_at":"2015-09-22T15:23:01Z","pushed_at":"2015-10-12T15:57:20Z","git_url":"git://github.com/alphagov/cf-terraform.git","ssh_url":"git@github.com:alphagov/cf-terraform.git","clone_url":"https://github.com/alphagov/cf-terraform.git","svn_url":"https://github.com/alphagov/cf-terraform","homepage":null,"size":1660,"stargazers_count":0,"watchers_count":0,"language":"HCL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/cf-terraform/pulls/48"},"html":{"href":"https://github.com/alphagov/cf-terraform/pull/48"},"issue":{"href":"https://api.github.com/repos/alphagov/cf-terraform/issues/48"},"comments":{"href":"https://api.github.com/repos/alphagov/cf-terraform/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/cf-terraform/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/cf-terraform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/cf-terraform/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/cf-terraform/statuses/4a7191d4330a59e7676c8ae3c449f0b2cfd84c3e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Jonty","id":1553,"avatar_url":"https://avatars.githubusercontent.com/u/1553?v=3","gravatar_id":"","url":"https://api.github.com/users/Jonty","html_url":"https://github.com/Jonty","followers_url":"https://api.github.com/users/Jonty/followers","following_url":"https://api.github.com/users/Jonty/following{/other_user}","gists_url":"https://api.github.com/users/Jonty/gists{/gist_id}","starred_url":"https://api.github.com/users/Jonty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jonty/subscriptions","organizations_url":"https://api.github.com/users/Jonty/orgs","repos_url":"https://api.github.com/users/Jonty/repos","events_url":"https://api.github.com/users/Jonty/events{/privacy}","received_events_url":"https://api.github.com/users/Jonty/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":6,"deletions":0,"changed_files":2}}