Skip to Main Content
Status Delivered
Workspace * IBM Cloud Ideas
Created by Guest
Created on Aug 23, 2016

Allow setting of autoscaling policy in an automated fashion

At the moment, whilst it is possible to create an AutoScaling service via the command line tools, you cannot configure auto-scaling policies without having to log into the dashboard.

This greatly restricts the options when trying to deploy an application in an automated fashion as it introduces a manual step for each and every application launched on BlueMix.

It would be good if you could configure the policy by adding parameters via a JSON hash as you can with some of the other services using the "CF" command.

As an example:

cf cs Auto-Scaling free TestApplication -c '{\"type\": \"RAM\", \"min_nodes\":\"4\", \"max_nodes\": \"20\", \"threshold\": \"85%\"}'

  • Guest
    Aug 23, 2016

    You can do this already using the bluemix cli instead of the cf cli:

    bluemix as policy-create > my-scaling-policy.json
    bluemix cf create-service Auto-Scaling free my-scaling-service
    bluemix as policy-attach my-application -p my-scaling-policy.json