Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Is anyone think about machine scaling on swarm? #676

Closed
cusspvz opened this issue Apr 27, 2015 · 5 comments
Closed

Is anyone think about machine scaling on swarm? #676

cusspvz opened this issue Apr 27, 2015 · 5 comments

Comments

@cusspvz
Copy link

cusspvz commented Apr 27, 2015

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.

Is there any integration between swarm and machine for docker-based scaling? Or sort of for each kind of driver?

@cultureulterior
Copy link

I'm looking at this myself- luckily, docker already integrates cpu usage, so once that is integrated into the swarm api, it should be possible to see how loaded each type of container is and spawn more. (and more machines)

@abronan
Copy link
Contributor

abronan commented Apr 27, 2015

As @cultureulterior stated above, there is a way to scale beyond 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.

The 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."

@cusspvz
Copy link
Author

cusspvz commented Apr 27, 2015

@abronan @cultureulterior thanks for your fast answers.

So, that means it is possible to implement auto-scaling feature running on swarm-master, right?

Should this be changed to a FR? Or it should be requested on composer?

@chanwit
Copy link
Contributor

chanwit commented May 5, 2015

I've just done 100-node scaling using compose via swarm. Although it's not auto-scaling, but I think compose would be a good place for this feature?

Anyway, with Global scheduling #601, swarm will have an autoscaling-like feature anyway.

@aluzzardi
Copy link
Contributor

This is probably outside of the scope of Swarm (at least for now).

Swarm and Machine provide the APIs so that anyone can build a feature such as auto-scaling on top of them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants