{"action":"created","issue":{"url":"https://api.github.com/repos/Shippable/support/issues/1117","labels_url":"https://api.github.com/repos/Shippable/support/issues/1117/labels{/name}","comments_url":"https://api.github.com/repos/Shippable/support/issues/1117/comments","events_url":"https://api.github.com/repos/Shippable/support/issues/1117/events","html_url":"https://github.com/Shippable/support/issues/1117","id":59467193,"number":1117,"title":"API support to add, initialize, deploy and remove dedicated nodes","user":{"login":"pmoust","id":2493339,"avatar_url":"https://avatars.githubusercontent.com/u/2493339?v=3","gravatar_id":"","url":"https://api.github.com/users/pmoust","html_url":"https://github.com/pmoust","followers_url":"https://api.github.com/users/pmoust/followers","following_url":"https://api.github.com/users/pmoust/following{/other_user}","gists_url":"https://api.github.com/users/pmoust/gists{/gist_id}","starred_url":"https://api.github.com/users/pmoust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmoust/subscriptions","organizations_url":"https://api.github.com/users/pmoust/orgs","repos_url":"https://api.github.com/users/pmoust/repos","events_url":"https://api.github.com/users/pmoust/events{/privacy}","received_events_url":"https://api.github.com/users/pmoust/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Shippable/support/labels/feature%20request","name":"feature request","color":"5319e7"},{"url":"https://api.github.com/repos/Shippable/support/labels/triaged","name":"triaged","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-02T11:07:27Z","updated_at":"2015-03-04T20:16:32Z","closed_at":null,"body":"We want to move our Shippable dedicated nodes to an AWS autoscaling group that will also benefit from spot/price launch configuration for EC2 instances.\r\n\r\nCurrently there is not way for us to programmatically call an Initialize + Deploy sequence.\r\n\r\nThe flow would be as follows\r\n\r\n1. On instance boot + after our custom provision from cloud-init, allow instance to call your API and register itself as a dedicated node. On success do\r\n2. Call initialise, on success do\r\n3. Deploy Shippable containers and proactively pull our custom images\r\n4. If any steps fail, deregister (remove) dedicated node and kill the EC2 instance\r\n\r\nThe above covers initial cluster launch and scale up strategy. \r\n\r\nScale down (due to no load, or spot price too high) triggers an SNS call per destroyed instance, that we 'll handle and call your API to remove killed dedicated node.\r\n\r\nWould be a very nice feature to have."},"comment":{"url":"https://api.github.com/repos/Shippable/support/issues/comments/77237370","html_url":"https://github.com/Shippable/support/issues/1117#issuecomment-77237370","issue_url":"https://api.github.com/repos/Shippable/support/issues/1117","id":77237370,"user":{"login":"velo","id":136590,"avatar_url":"https://avatars.githubusercontent.com/u/136590?v=3","gravatar_id":"","url":"https://api.github.com/users/velo","html_url":"https://github.com/velo","followers_url":"https://api.github.com/users/velo/followers","following_url":"https://api.github.com/users/velo/following{/other_user}","gists_url":"https://api.github.com/users/velo/gists{/gist_id}","starred_url":"https://api.github.com/users/velo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velo/subscriptions","organizations_url":"https://api.github.com/users/velo/orgs","repos_url":"https://api.github.com/users/velo/repos","events_url":"https://api.github.com/users/velo/events{/privacy}","received_events_url":"https://api.github.com/users/velo/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T20:16:32Z","updated_at":"2015-03-04T20:16:32Z","body":"++"}}