Azure 应用服务 - 从应用程序内部管理缩放

Azure App Services - Manage scaling from within the application

我在 Azure App Services 中托管了一个应用程序,我在其中 运行 执行一些作业,作业的数量各不相同,队列一次可以是 1 到 20 000 个。我正在使用 Hangfire 运行 这些工作。

我正在寻找一种根据我自己的规则扩展应用服务的方法,我尝试使用基于性能的标准规则进行扩展,但并非所有作业都使用大量资源,因此规则不太适用.

任何帮助将不胜感激

I'm looking for a way to scale the App Services based on my own rules, I have tried scaling using the standard rules based on performance but not all the jobs use much resources so the rules do not quite work out.

据我了解,如果多个实例的自动缩放(向外扩展)不能满足您的要求,我假设您可以根据您的自定义规则以编程方式向上或向外扩展您的应用程序服务计划。您可以访问 Create Or Update REST API for app service plan with Azure AD authentication. For more details, you could refer to this similar .