meteorhacks / cluster

Clustering solution for Meteor with load balancing and service discovery
https://meteorhacks.com/cluster-a-different-kind-of-load-balancer-for-meteor.html
MIT License
631 stars 80 forks source link

Autoscaling/ Cluster Events #18

Open zimt28 opened 9 years ago

zimt28 commented 9 years ago

It would be nice if we could run code on certain events. For example, if the average load is more than 90%, launch a new server (I think DigitalOcean & friends allow this using their APIs). Or at least notify the admin. Or remove a server, if the load goes below a certain value. And having a number of current servers would be nice, so we could scale but check before removing servers so that we keep at least three servers or so.

I'm not sure what events and data would be helpful, but basically a cluster API would be nice :)

rhyslbw commented 9 years ago

:+1:

ghost commented 9 years ago

I really like the idea too. But I think this logic should be outside the productive instances. What we need is an administration layer which knows everything about all the cluster instances and let us manage the nodes, start instances, create new instances on DigitalOcean (with the DO API) and collect all the system and analytics data we need to run our app efficiently. What we need is a BigBrother instance, but I personally like the term MotherShip more ;)

devonbarrett commented 9 years ago

:+1:

rhyslbw commented 9 years ago

Kadira is the natural place for this, utilising the existing alerts module to setup scaling triggers etc. By that point I'm guessing there would be a Cluster API that can be used to create a management service app if not wanting to use Kadira.

See https://github.com/meteorhacks/cluster/issues/22

arunoda commented 9 years ago

Good idea.

On Sun, May 10, 2015 at 7:34 AM Rhys Bartels-Waller < notifications@github.com> wrote:

Kadira is the natural place for this, utilising the existing alerts module to setup scaling tiggers etc. By that point I'm guessing there would be a Cluster API that can be used to create a management service app if not wanting to use Kadira.

See #22 https://github.com/meteorhacks/cluster/issues/22

— Reply to this email directly or view it on GitHub https://github.com/meteorhacks/cluster/issues/18#issuecomment-100572702.

sakulstra commented 8 years ago

Are there any news on this? I would love to somehow help with this. We're currently running an app which needs like 5-6 instances in prime time and 1-2 and night. Would be nice to automate the start/shutdown process.