Table of Contents
BTP Neo this does not provide a full-fledged and flexible autoscaling option. This example shows how to achieve such functionality. The command monitores your application and scales it up or down automatically, based on predefined rules.
Furthermore, with the help of SAP Alert Notification this command can be automatically triggered whenever the CPU load metric of your application instance reaches a critical level.
This example is described in further details by this blog post: Application autoscaling with Automation Pilot and Alert Notification
To use this example you'll need the following:
- SAP BTP Neo subaccount with at least one Java application
- At least one quota which is necessary for the application upscaling
- OAuth client credentials with sufficient scope for application management and access to monitoring data
Check out the following resources for more information:
Import the content of examples catalog in your Automation Pilot tenant. Navigate to the AutoScaleNeoApp command and trigger it.
You'll need to provide values for the following input keys:
- region - Technical name of your SAP BTP region, e.g. neo-eu1, neo-us2
- subAccount - Name of your SAP BTP subaccount
- resourceName - Name of your Java application
- clientId - Neo Platform API client id
- clientSecret - Neo Platform API client secret
- scaleUpThreshold - Optional: CPU load threshold in percentage for scaling up an instance. Defaults to 70
- scaleDownThreshold - Optional: CPU load threshold in percentage for scaling down an instance. Defaults to 30