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

Cloud investments soar as AI advances

3 min read - These days, cloud news often gets overshadowed by anything and everything related to AI. The truth is they go hand-in-hand since many enterprises use cloud computing to deliver AI and generative AI at scale. "Hybrid cloud and AI are two sides of the same coin because it's all about the data," said Ric Lewis, IBM’s SVP of Infrastructure, at Think 2024. To function well, generative AI systems need to access the data that feeds its models wherever it resides. Enter…

3 keys to building a robust hybrid cloud risk strategy

2 min read - Hybrid cloud has become the new normal for enterprises in nearly all industries. Many enterprises have also deployed a hybrid multicloud environment that’s reliant on an ecosystem of different cloud service providers. According to an IBM Institute for Business Value report, 71% of executives think it’s difficult to realize the full potential of a digital transformation without having a solid hybrid cloud strategy in place. Managing complex business operations across a hybrid multicloud environment presents leaders with unique challenges, not…

The power of embracing distributed hybrid infrastructure

2 min read - Data is the greatest asset to help organizations improve decision-making, fuel growth and boost competitiveness in the marketplace. But today’s organizations face the challenge of managing vast amounts of data across multiple environments. This is why understanding the uniqueness of your IT processes, workloads and applications demands a workload placement strategy based on key factors such as the type of data, necessary compute capacity and performance needed and meeting your regulatory security and compliance requirements. While hybrid cloud has become…

IBM Newsletters

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