{"action":"created","issue":{"url":"https://api.github.com/repos/deis/deis/issues/3674","labels_url":"https://api.github.com/repos/deis/deis/issues/3674/labels{/name}","comments_url":"https://api.github.com/repos/deis/deis/issues/3674/comments","events_url":"https://api.github.com/repos/deis/deis/issues/3674/events","html_url":"https://github.com/deis/deis/issues/3674","id":75547885,"number":3674,"title":"Discussion: app unit publishing timeouts between publisher and router","user":{"login":"glogiotatidis","id":584352,"avatar_url":"https://avatars.githubusercontent.com/u/584352?v=3","gravatar_id":"","url":"https://api.github.com/users/glogiotatidis","html_url":"https://github.com/glogiotatidis","followers_url":"https://api.github.com/users/glogiotatidis/followers","following_url":"https://api.github.com/users/glogiotatidis/following{/other_user}","gists_url":"https://api.github.com/users/glogiotatidis/gists{/gist_id}","starred_url":"https://api.github.com/users/glogiotatidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glogiotatidis/subscriptions","organizations_url":"https://api.github.com/users/glogiotatidis/orgs","repos_url":"https://api.github.com/users/glogiotatidis/repos","events_url":"https://api.github.com/users/glogiotatidis/events{/privacy}","received_events_url":"https://api.github.com/users/glogiotatidis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deis/deis/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/deis/deis/labels/open-roadmap","name":"open-roadmap","color":"009800"},{"url":"https://api.github.com/repos/deis/deis/labels/publisher","name":"publisher","color":"0052cc"},{"url":"https://api.github.com/repos/deis/deis/labels/router","name":"router","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-12T10:13:15Z","updated_at":"2015-06-07T19:49:39Z","closed_at":"2015-06-07T19:49:39Z","body":"Changes in the apps, like deployment of new versions or scaling, are not instantly reflated to the routers which results in routers sending traffic to dead containers.\r\n\r\nI manage to reproduce this using this simple scenario:\r\n1. Build an app with the example-ruby-sinatra app\r\n2. Make sure that there is 1 web process\r\n2.5 Start a loop, requesting the app url \r\n3. Scale the down to zero using `deis scale web=0`\r\n3.5 Stop request the app url\r\n\r\nThe logs collected between steps 2.5 and 3.5 are the following\r\n```\r\nHTTP/1.1 200 OK\r\nHTTP/1.1 200 OK\r\nHTTP/1.1 200 OK\r\nHTTP/1.1 200 OK\r\nHTTP/1.1 200 OK\r\nHTTP/1.1 502 Bad Gateway\r\nHTTP/1.1 502 Bad Gateway\r\nHTTP/1.1 502 Bad Gateway\r\nHTTP/1.1 503 Service Temporarily Unavailable\r\nHTTP/1.1 503 Service Temporarily Unavailable\r\nHTTP/1.1 503 Service Temporarily Unavailable\r\n```\r\n\r\nThe `200 OK` lines are expected, since the application is running. The `503 Service Temporarily Unavailable` are OK too since we scaled down to zero, thus there are no gateways. But the three `502 Bad Gateway` lines mean that nginx redirects traffic to servers that no longer exist.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/deis/deis/issues/comments/109792768","html_url":"https://github.com/deis/deis/issues/3674#issuecomment-109792768","issue_url":"https://api.github.com/repos/deis/deis/issues/3674","id":109792768,"user":{"login":"carmstrong","id":536009,"avatar_url":"https://avatars.githubusercontent.com/u/536009?v=3","gravatar_id":"","url":"https://api.github.com/users/carmstrong","html_url":"https://github.com/carmstrong","followers_url":"https://api.github.com/users/carmstrong/followers","following_url":"https://api.github.com/users/carmstrong/following{/other_user}","gists_url":"https://api.github.com/users/carmstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/carmstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carmstrong/subscriptions","organizations_url":"https://api.github.com/users/carmstrong/orgs","repos_url":"https://api.github.com/users/carmstrong/repos","events_url":"https://api.github.com/users/carmstrong/events{/privacy}","received_events_url":"https://api.github.com/users/carmstrong/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T19:49:39Z","updated_at":"2015-06-07T19:49:39Z","body":"This is being tracked in #3813, which is a solution to address a number of issues for application health checks during deploy and publishing."}}