Netflix/mantis

Question: How to Autoscale DEFAULT ResourceClusterProvider?

crioux-stripe opened this issue · 3 comments

Context

We've deployed Mantis and are able to get the master to accept work and submit it to an ASG backed DEFAULT ResourceClusterProvider. However the default doesn't come with autoscaling and we'd like to test our implementation of ResourceClusterProvider as well as have our cluster autoscale.

What request and payload do we need to submit to the master to assign an autoscaling policy to DEFAULT? The docs don't have anything here but I'd be happy to submit a pull request to them to get a section started on managing ResourceClusterProviders.

@Andyz26 Can you take a stab at this?

hi @crioux-stripe to enable resource cluster auto-scaling you need to add scaling rules to the target cluster id from this API: link.

The request will look something like this:

{
    "clusterId": {"resourceID": "{{resourceClusterId}}"},
    "rules": [
        {
            "clusterId": {
                "resourceID": "{{resourceClusterId}}"
            },
            "skuId": {
                "resourceID": "medium"
            },
            "minIdleToKeep": 10,
            "minSize": 1,
            "maxIdleToKeep": 15,
            "maxSize": 20,
            "coolDownSecs": 300
        },
        {
            "clusterId": {
                "resourceID": "{{resourceClusterId}}"
            },
            "skuId": {
                "resourceID": "large"
            },
            "minIdleToKeep": 10,
            "minSize": 1,
            "maxIdleToKeep": 15,
            "maxSize": 30,
            "coolDownSecs": 300
        }
    ]
}