{"action":"created","issue":{"url":"https://api.github.com/repos/docker/swarm/issues/676","labels_url":"https://api.github.com/repos/docker/swarm/issues/676/labels{/name}","comments_url":"https://api.github.com/repos/docker/swarm/issues/676/comments","events_url":"https://api.github.com/repos/docker/swarm/issues/676/events","html_url":"https://github.com/docker/swarm/issues/676","id":71253687,"number":676,"title":"Is anyone think about machine scaling on swarm?","user":{"login":"cusspvz","id":3604053,"avatar_url":"https://avatars.githubusercontent.com/u/3604053?v=3","gravatar_id":"","url":"https://api.github.com/users/cusspvz","html_url":"https://github.com/cusspvz","followers_url":"https://api.github.com/users/cusspvz/followers","following_url":"https://api.github.com/users/cusspvz/following{/other_user}","gists_url":"https://api.github.com/users/cusspvz/gists{/gist_id}","starred_url":"https://api.github.com/users/cusspvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cusspvz/subscriptions","organizations_url":"https://api.github.com/users/cusspvz/orgs","repos_url":"https://api.github.com/users/cusspvz/repos","events_url":"https://api.github.com/users/cusspvz/events{/privacy}","received_events_url":"https://api.github.com/users/cusspvz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/swarm/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-27T11:15:37Z","updated_at":"2015-04-27T15:56:04Z","closed_at":null,"body":"*Swarm* looks like an amazing tools for deploying apps into cloud, but I have a doubt about how it would integrate with cloud-providers autoscaling.\r\n\r\nIs there any integration between *swarm* and *machine* for docker-based scaling? Or sort of for each kind of driver?"},"comment":{"url":"https://api.github.com/repos/docker/swarm/issues/comments/96722110","html_url":"https://github.com/docker/swarm/issues/676#issuecomment-96722110","issue_url":"https://api.github.com/repos/docker/swarm/issues/676","id":96722110,"user":{"login":"abronan","id":1655859,"avatar_url":"https://avatars.githubusercontent.com/u/1655859?v=3","gravatar_id":"","url":"https://api.github.com/users/abronan","html_url":"https://github.com/abronan","followers_url":"https://api.github.com/users/abronan/followers","following_url":"https://api.github.com/users/abronan/following{/other_user}","gists_url":"https://api.github.com/users/abronan/gists{/gist_id}","starred_url":"https://api.github.com/users/abronan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abronan/subscriptions","organizations_url":"https://api.github.com/users/abronan/orgs","repos_url":"https://api.github.com/users/abronan/repos","events_url":"https://api.github.com/users/abronan/events{/privacy}","received_events_url":"https://api.github.com/users/abronan/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T15:56:04Z","updated_at":"2015-04-27T15:56:04Z","body":"As @cultureulterior stated above, there is a way to scale above the initial Swarm agents by monitoring CPU and Memory usage on each node. This way when you reach a given threshold (let's say 80% of resources in use throughout the cluster), you create another Swarm agent to accommodate the demand and incoming future containers in the cluster.\r\n\r\nThe same way, you can tell: \"Most of the time my cluster is empty and I'm wasting resources so kill a few node because I don't need them.\""}}