Open topic with navigation

TIBCO® Control Plane 1.0.0

# Configure Autoscaling of an App with the API

Using this API you can configure autoscaling of a deployed app and send those updates to the cloud for TIBCO Flogo®.

To configure autoscaling of a deployed app you need the App ID — ID of the app to be accessed, which can be retrieved using the GET /v1/dp/apps method.

Procedure

1. Use the PUT /v1/dp/apps/{appId}/autoscaling method along with the following required request body parameters.

       {
       "hpaMetrics":{
       "cpuUtilization": {
       "averageCpuUtilization": 0,
       "enabled": true
       },
       "memoryUtilization":
       {"averageMemoryUtilization": 0,
       "enabled": true
       }
       },
       "maxReplicas": 0,
       "minReplicas": 0
       }

   Here, `averageCpuUtilization` and `memoryUtilization` are two conditions which we need to set for the auto scaling configuration. You can provide `min/max replicas` for the HPA resource configuration.

   Note: HPA stands for Horizontal Pod Autoscaling. It is a feature which scales up or down the number of pods of an application based upon the load. The load is determined by two values; `averageCpuUtilization` and `memoryUtilization`. The HPA object will scale one more pod until the `maxReplicas` count is matched.

2. Include one or more of the query parameters to filter the results. Click the API Documentation button on your Data Plane for more information.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® Control Plane

Copyright © 2023-2024. Cloud Software Group, Inc. All Rights Reserved.