横向扩展后,Azure App Service实例可用多长时间? [英] How long does it take for an Azure App Service instance to be available after a scale out?

查看:70
本文介绍了横向扩展后,Azure App Service实例可用多长时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上下文:我正在为Microsoft Azure应用程序服务上托管的.NET Framework 4.7 Web应用程序设计自动缩放(横向扩展)配置.我正在使用P3V2定价层.该应用程序受CPU限制.根据App Service计划中指示的统计信息,该应用程序在2个实例上运行时,其30天的CPU平均使用率为30%.偶尔会有流量高峰,这将淹没这两个实例:我想实现自动缩放.

Context: I am designing the auto-scaling (scale out) configuration for my .NET Framework 4.7 web app hosted on a Microsoft Azure App Service. I am using the P3V2 pricing tier. The application is CPU-bound. The app's 30 day CPU average is 30% usage while running on 2 instances, according to the stats indicated in the App Service plan. We occasionally have traffic spikes which will overwhelm the 2 instances: I want to implement auto-scaling.

在设计衡量我的应用服务何时扩展的指标阈值时,我想考虑App Service Provisioning + App Startup Time.我需要将阈值设置得足够低,以使Azure有时间启动一个新的应用程序服务实例,但又不能设置得太低,以至于我不必要地为不需要的处理能力付出了代价.预算是一个重要因素.

I want to take into account the App Service Provisioning + App Startup Time when designing the metrics thresholds that decide when my app service scales out. I need to make my thresholds low enough to give Azure time to spin up a new app service instance but not so low that I am paying unnecessarily for processing power that's not needed. Budget is a significant factor.

问题:横向扩展后,Azure App Service实例可用多长时间?换句话说,Azure App Service扩展需要多长时间?

Question: How long does it take for an Azure App Service instance to be available after a scale out? In other words, how long does it take for an Azure App Service to scale out?

P.S.我认识到,我在此未解决的还有很多要扩展/扩展的内容.我正在尽力简洁.:)

P.S. I recognize that there is a lot more to scaling in/out that I am not addressing here. I'm trying my best to be succinct. :)

推荐答案

通常,不会很久.我的意思是通常不超过一分钟,但是时间会因多种因素而异,例如应用程序大小,一天中的时间,部署区域.

Generally, not long at all. By that I mean typically under one minute, but the time will vary depending on several factors, such as application size, time of day, region of deployment.

您可以手动扩展并检查扩展"选项卡上的运行历史记录日志.

You could scale out manually and inspect the run history logs on the scale out tab.

仅供参考,如果您有任何用处,还可以使用Azure Monitor创建自动缩放策略.

FYI you can also use Azure Monitor to create auto-scale policies, in case this is of any use to you.

这篇关于横向扩展后,Azure App Service实例可用多长时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆