Autoscaling not working in Elastic Application Runtime
search cancel

Autoscaling not working in Elastic Application Runtime

book

Article ID: 433377

calendar_today

Updated On:

Products

VMware Tanzu Application Service

Issue/Introduction

Apps autoscaling doesn't work  and upon checking the autoscaling events for the app you will notice the below error

cf  autoscaling-events <app-name>

Presenting autoscaler events for app <app-name> in org <org-name> / space <space-name>
OK
Time                   Description
2026-03-10T11:29:51Z   Unable to scale due to Cloud Controller error.
2026-03-10T11:29:16Z   Unable to scale due to Cloud Controller error.
2026-03-10T11:29:15Z   Enabled autoscaling.
2026-03-10T11:24:21Z   Disabled autoscaling.
2026-03-10T11:24:19Z   Unable to scale due to Cloud Controller error.

Environment

Elastic Application Runtime 6.x and above versions

Cause

If you search for the app GUID in the cloud controller logs, you will notice the API calls made by the autoscaler on the endpoint /v2/apps/:guid/summary  

This can happen if the "App Autoscaler errand" is not enabled/run upon the EAR version upgrade, autoscaler app would still be running on an older version and hence instead of making api calls on /v3 we can see this behaviour

Resolution

We can enable the errand in the tile and then apply changes or for quicker testing we can run this errand manually using the below bosh command 

bosh -d cf-<deployment-id> run-errand deploy-autoscaler --instance clock_global/first


Note: Recommendation is to enable this errand under the Errands section on the EAR tile for persistence