【Azure App Services】多次操作App Service伸缩实例遇见限制操作记录

azure,app,services,多次,操作,service,伸缩,实例,遇见,限制,记录 · 浏览次数 : 1

小编点评

**问题描述:** { \"status\": \"Failed\", \"error\": { \"code\": \"Conflict\", \"message\": \"You have exceeded the maximum amount of scale changes within the past hour(23 changes and limit is 20). Please retry later.\", \"details\": [ { \"message\": \"You have exceeded the maximum amount of scale changes within the past hour(23 changes and limit is 20). Please retry later.\" }, { \"code\": \"Conflict\" } ] }} **解决方案:** * 不要在过去 1 小时内执行多个缩放操作。 * 每当释放实例时,请确保实例重新启动。 * 当执行多条缩放操作时,请注意实例重启之间的性能影响。

正文

问题描述

多次操作App Services,进行实例数的变化。达到限制后遇见报错:

错误的具体描述为:

{
   "status": "Failed",
   "error": {
       "code": "Conflict",
       "message": "You have exceeded the maximum amount of scale changes within the past hour(23 changes and limit is 20). Please retry later.",
       "details": [
           {
               "message": "You have exceeded the maximum amount of scale changes within the past hour(23 changes and limit is 20). Please retry later."
           },
           {
               "code": "Conflict"
           }
       ]
   }
}

 

问题解答

根据提示信息,“过去一小时内,您已超出Scale变化最大数量(23 次更改,限制为 20),请稍后重试。” 这个限制的目的是防止短时间内过度更改。

详细请参考以下文档:https://learn.microsoft.com/en-us/troubleshoot/azure/app-service/scaling-web-app-faq#i-m-unable-to-scale-up-scale-down-the-app-service-plan-due-to-the--you-have-exceeded-the-maximum-amount-of-scale-changes-within-the-past-hour--xx-changes-and-limit-is-xx---error--what-should-i-do--

若要避免此问题,请不要执行在一小时内释放超过 XX 个实例的缩放操作。 每次在纵向缩减操作期间释放实例时,该实例都会重新启动,以确保下一个App 服务计划可以获得干净的实例。 连续快速执行过多的缩放操作时,实例重启可能会导致其他应用服务出现性能问题。 因此,我们特意为缩放设置一种限制机制,以防止你快速连续执行超过可接受的限制的缩放操作。

I'm unable to scale up/scale down the App Service Plan due to the "You have exceeded the maximum amount of scale changes within the past hour (XX changes and limit is XX)" error. What should I do?

To avoid this issue, don't perform scaling operations that release more than XX instances in an hour. Every time you release an instance during a scale-down operation, the instance is rebooted to ensure the next App Service Plan can get a clean instance. When you perform too many scaling operations in quick succession, instance reboots can cause performance issues for other App Services. Therefore we intentionally put a throttling mechanism for scaling that prevents you from executing scaling operations more than the acceptable limit in quick succession.

 

 

参考资料

FAQs about scaling web apps in Azure App Service : https://learn.microsoft.com/en-us/troubleshoot/azure/app-service/scaling-web-app-faq

 

与【Azure App Services】多次操作App Service伸缩实例遇见限制操作记录相似的内容:

【Azure App Services】多次操作App Service伸缩实例遇见限制操作记录

"message": "You have exceeded the maximum amount of scale changes within the past hour(23 changes and limit is 20). Please retry later."

【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service Linux/Linux Container)

在前一篇文章中,我们是把.NET 8应用读取SSL证书(X509)示例部署在App Service Windows环境中,那么如果部署在Linux环境,以及Linux Container中呢? 根据前文中的第一种方法,直接在把证书文件包含在源文件中,通过相对路径读取证书文件的方式,经测试,可以正常工

【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service Windows)

在使用App Service服务部署业务应用,因为有些第三方的接口需要调用者携带TLS/SSL证书(X509 Certificate),在官方文档中介绍了两种方式在代码中使用证书: 1) 直接使用证书文件路径加载证书 new X509Certificate2 2) 从系统的证书库中通过指纹加载...

【Azure App Service】通过Visual Studio部署Azure App Service 遇见 401 'Unauthorized'错误

Error : Web deployment task failed. (Connected to the remote computer ("javatest02.scm.chinacloudsites.cn") using the Web Management Service, but could not authorize. Make sure that you are using the

【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误

[500 The page cannot be displayed because an internal server error has occurred.] [scriptProcessor could not be found in "fastCGI" application configuration] [EXECUTE|500|0|0x585|CONFIG_SUCCESS|PHP7

【Azure App Service】Local Git App Service的仓库代码遇见卡住不Clone代码的问题

问题描述 启用App Service Local Git 部署,在Clone 代码库到本地时候,卡在Clone ‘xxxxxx’ ... ... 一动不动的问题? 问题解答 因为Git Clone没有任何日志输出,所以在其他IDE上也尝试Git App Service的代码库。在intellj的gi

【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.

问题描述 PHP的Web Job,通过artisan来配置路径启动PHP任务,相关启动脚本如下: artisan_path = "d:\\home\\site\\wwwroot"; cd ${artisan_path} echo "\n" pwd php artisan schedule:run 但

【Azure App Service】为部署在App Service上的PHP应用开启JIT编译器

问题描述 在App Service for linux上创建一个PHP应用,通过 phpinfo() 查看PHP的扩展设置,发现JIT没有被开启, jit_buffer_size 大小为0. 那么,在App Service的环境中,如何开启JIT呢? 问题解答 PHP 8在PHP的内核中添加了JIT

【Azure App Service for Linux】NodeJS镜像应用启动失败,遇见 RangeError: Incorrect locale information provided

问题描述 在App Service For Linux 中,部署NodeJS应用,应用启动失败。 报错信息为: 2023-08-29T11:21:36.329731566Z RangeError: Incorrect locale information provided2023-08-29T11:

【Azure App Service for Container】记一次拉取镜像失败的特殊情况

问题描述 使用Azure App Service For Container 拉取 应用镜像,发现拉取失败。 错误消息: “Image pull failed since Inspect image returned null: xxxxxxx.azurecr.cn/dataapi:20230830