July 10, 2019 By Sachi Pradhan 2 min read

How to migrate Auto-Scaling policies via the UX or the CLI.

We previously announced new autoscaling capabilities for IBM Cloud Foundry Public that greatly simplified the overall developer experience of building Cloud Foundry apps on IBM Cloud. These capabilities are now Generally Available. In addition we also announced the deprecation timeline of the IBM Cloud Auto-Scaling service.  

Migrating Auto-Scaling policies is fairly simple and can be done either via the UX or the CLI

How to migrate Auto-Scaling policies using the UX

  1. Use the Policy Migration button on the Auto-Scaling service instance that is bound to the IBM Cloud Foundry Public app to view and download the new policy to be migrated. 
  2. Unbind the Auto-Scaling service instance from the IBM Cloud Foundry Public app.  
  3. Now go to the Autoscaling option on the navigation pane and use the downloaded “App Autoscaler” policy JSON file from Step 1 to import and create a new policy. 
  4. The Cloud Foundry Public app now using the new policy based on the new “App Autoscaler” capability. 

How to migrate Auto-Scaling policies using the CLI

  1. Unbind the Auto-Scaling service instance from the Cloud Foundry Public Application:
    • $ ibmcloud cf unbind-service MyCoolApp-Sachi Auto-Scaling-New-Test
  2. Download the new “App Autoscaler”-based policy file as shown above in the UX Migration steps. Attach the new AutoScaling scaling policy to the Cloud Foundry Public Application.
    • ibmcloud cf aasp MyCoolApp-Sachi ../Downloads/app-autoscaler-policy.json

Note: Be sure to have the “app-autoscalar-plugin” installed. Use to following command to install the plugin:

$ ibmcloud cf install-plugin -r CF-Community app-autoscaler-plugin

About IBM Cloud Foundry

IBM Cloud Foundry is a Cloud Foundry-certified development platform for cloud-native applications on IBM Cloud. With a generous free tier of 375 GB-Hr’s/Month, IBM Cloud Foundry is the fastest and the cheapest way to build and host a cloud-native application on IBM Cloud

Get started and deploy your first application today.

Was this article helpful?
YesNo

More from Cloud

IBM Tech Now: April 8, 2024

< 1 min read - ​Welcome IBM Tech Now, our video web series featuring the latest and greatest news and announcements in the world of technology. Make sure you subscribe to our YouTube channel to be notified every time a new IBM Tech Now video is published. IBM Tech Now: Episode 96 On this episode, we're covering the following topics: IBM Cloud Logs A collaboration with IBM watsonx.ai and Anaconda IBM offerings in the G2 Spring Reports Stay plugged in You can check out the…

The advantages and disadvantages of private cloud 

6 min read - The popularity of private cloud is growing, primarily driven by the need for greater data security. Across industries like education, retail and government, organizations are choosing private cloud settings to conduct business use cases involving workloads with sensitive information and to comply with data privacy and compliance needs. In a report from Technavio (link resides outside ibm.com), the private cloud services market size is estimated to grow at a CAGR of 26.71% between 2023 and 2028, and it is forecast to increase by…

Optimize observability with IBM Cloud Logs to help improve infrastructure and app performance

5 min read - There is a dilemma facing infrastructure and app performance—as workloads generate an expanding amount of observability data, it puts increased pressure on collection tool abilities to process it all. The resulting data stress becomes expensive to manage and makes it harder to obtain actionable insights from the data itself, making it harder to have fast, effective, and cost-efficient performance management. A recent IDC study found that 57% of large enterprises are either collecting too much or too little observability data.…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.
Subscribe now More newsletters