{"action":"created","issue":{"url":"https://api.github.com/repos/eagletmt/hako/issues/21","repository_url":"https://api.github.com/repos/eagletmt/hako","labels_url":"https://api.github.com/repos/eagletmt/hako/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/eagletmt/hako/issues/21/comments","events_url":"https://api.github.com/repos/eagletmt/hako/issues/21/events","html_url":"https://github.com/eagletmt/hako/pull/21","id":181623958,"number":21,"title":"Implement --non-graceful option","user":{"login":"mozamimy","id":1119006,"avatar_url":"https://avatars.githubusercontent.com/u/1119006?v=3","gravatar_id":"","url":"https://api.github.com/users/mozamimy","html_url":"https://github.com/mozamimy","followers_url":"https://api.github.com/users/mozamimy/followers","following_url":"https://api.github.com/users/mozamimy/following{/other_user}","gists_url":"https://api.github.com/users/mozamimy/gists{/gist_id}","starred_url":"https://api.github.com/users/mozamimy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozamimy/subscriptions","organizations_url":"https://api.github.com/users/mozamimy/orgs","repos_url":"https://api.github.com/users/mozamimy/repos","events_url":"https://api.github.com/users/mozamimy/events{/privacy}","received_events_url":"https://api.github.com/users/mozamimy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-07T09:33:37Z","updated_at":"2016-10-10T01:28:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eagletmt/hako/pulls/21","html_url":"https://github.com/eagletmt/hako/pull/21","diff_url":"https://github.com/eagletmt/hako/pull/21.diff","patch_url":"https://github.com/eagletmt/hako/pull/21.patch"},"body":"I implemented new option --non-graceful.\r\nWhen we run `hako deploy --non-graceful`, the deployment is started after running task is stopped.\r\n\r\n# Why --non-graceful is implemented?\r\n\r\nHako deploys an application gracefully in deployment so there are two tasks in a certain moment.\r\nIf a task definition is like following,\r\n\r\n```yaml\r\nscheduler:\r\n  type: ecs\r\n  region: ap-northeast-1\r\n  desired_count: 1\r\napp:\r\n  image: busybox\r\n  cpu: 128\r\n  memory: 256\r\n  port_mappings:\r\n    - host_port: 30000\r\n      container_port: 80\r\n```\r\n\r\nThe port 30000 is utilised by an old task so Hako says an error message like following\r\n\r\n```\r\nI, [2016-10-07T17:17:39.062109 #52399]  INFO -- : 2016-10-07 17:17:37 +0900: (service app) was unable to place a task because no container instance met all of its requirements. The closest matching (container-instance 5f4f9677-3ca3-4e42-aca5-94e305376673) is already using a port required by your task. For more information, see the Troubleshooting section of the Amazon ECS Developer Guide.\r\n```\r\n\r\nIf we can allow few downtime, --non-graceful option is useful this situation."},"comment":{"url":"https://api.github.com/repos/eagletmt/hako/issues/comments/252526329","html_url":"https://github.com/eagletmt/hako/pull/21#issuecomment-252526329","issue_url":"https://api.github.com/repos/eagletmt/hako/issues/21","id":252526329,"user":{"login":"mozamimy","id":1119006,"avatar_url":"https://avatars.githubusercontent.com/u/1119006?v=3","gravatar_id":"","url":"https://api.github.com/users/mozamimy","html_url":"https://github.com/mozamimy","followers_url":"https://api.github.com/users/mozamimy/followers","following_url":"https://api.github.com/users/mozamimy/following{/other_user}","gists_url":"https://api.github.com/users/mozamimy/gists{/gist_id}","starred_url":"https://api.github.com/users/mozamimy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozamimy/subscriptions","organizations_url":"https://api.github.com/users/mozamimy/orgs","repos_url":"https://api.github.com/users/mozamimy/repos","events_url":"https://api.github.com/users/mozamimy/events{/privacy}","received_events_url":"https://api.github.com/users/mozamimy/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T01:28:06Z","updated_at":"2016-10-10T01:28:06Z","body":"Thank you for your quick response.\r\n\r\nI tried `minimum_healthy_percent`. But hako still says,\r\n\r\n<pre>\r\nI, [2016-10-10T10:20:02.504050 #29797]  INFO -- : 2016-10-10 10:20:01 +0900: (service logs_flow) was unable to place a task because no container instance met all of its requirements. The closest matching (container-instance 5f4f9677-3ca3-4e42-aca5-94e305376673) is already using a port required by your task. For more information, see the Troubleshooting section of the Amazon ECS Developer Guide.\r\n</pre>\r\n\r\nAny idea?"}}
{"actor":{"display_login":"mozamimy"}}