Search code examples
amazon-web-servicesamazon-ec2mesosautoscaling

Mesos - dynamic cluster size


Is it possible in Mesos to have dynamic cluster size - with total cluster CPU and RAM quotas set?

Mesos knows my AWS credentials and spawns new ec2 instances only if there is a new job that cannot fit into existing resources. (AWS or other cloud provider). Similar to that - when the job is finished it could kill the ec2 instance.

It can be Mesos plugin/framework or some external tool - any help appreciated.

Thanks


Solution

  • What we are doing is we are using Mesos monitoring tools and HTTP endpoints @ http://mesos.apache.org/documentation/latest/endpoints/ to monitor the cluster.

    We have our own framework that gets all the relevant information from the master and slave nodes and our algorithm uses that information to scale the cluster.

    For example if the cluster CPU utilization is > 0.90 we bring up a new instance and register that slave to master.