question

dyrman avatar image
0 Votes"
dyrman asked AlanKinane commented

App service plan scale out response time

Currently, I'm working on web app scaling out configuration.
My goal is to create additional instances as soon as the CPU increases to 40% or more. I've done some configuration and it works.
Here is my configuration.

But the problem is that it responds to the metrics not immediately. Usually, it takes a few minutes before scaling and this is something that is not acceptable in my case.

Is it possible to make the scaling process respond to metrics changes faster?



azure-webappsazure-webapps-scaling
image.png (155.4 KiB)
image.png (155.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AlanKinane avatar image
1 Vote"
AlanKinane answered AlanKinane commented

Hi, here is a best practices articles on this process: https://docs.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-best-practices#choose-the-thresholds-carefully-for-all-metric-types

There is also a preview feature for predictive autoscaling for Virtual Machine Scale Sets (not App Service) which might be of interest as an alternative option for you: https://docs.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-predictive

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the links.
Unfortunately, I haven't found an answer to my question - how to make the app service plan scale-out respond to CPU changes as soon as possible?

0 Votes 0 ·

I don't think there is a way currently. The scale out operation does take some time to complete. If the issue is due to performance impact until the scale out operation completes then I think your best option for this service is to adjust your scaling logic to try and scale out a bit earlier in order to handle the increased load before there is a noticeable performance impact.

1 Vote 1 ·