简体   繁体   English

Azure应用服务-从应用程序内部管理扩展

[英]Azure App Services - Manage scaling from within the application

I have a application hosted in Azure App Services where I'm running some jobs, the amount of jobs varies and the queue can be anywhere from 1 to 20 000 at a time. 我在Azure App Services中托管了一个应用程序,该应用程序在其中运行一些作业,作业数量各不相同,并且队列一次可以在1到20000之间。 I'm using Hangfire to run these jobs. 我正在使用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. 我正在寻找一种基于我自己的规则扩展App Services的方法,我曾尝试根据性能使用标准规则进行扩展,但并非所有工作都占用大量资源,因此这些规则不太可行。

Any help will be appreciated 任何帮助将不胜感激

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. 我正在寻找一种基于我自己的规则扩展App Services的方法,我曾尝试根据性能使用标准规则进行扩展,但并非所有工作都占用大量资源,因此这些规则不太可行。

Per my understanding, if the autoscale (scale out) for multiple instances could not meet your requirement, I assumed that you could programmatically scale up or scale out your app service plan based on your custom rules. 据我了解,如果多个实例的自动扩展(扩展)不能满足您的要求,我假设您可以根据自定义规则以编程方式扩展或扩展您的应用程序服务计划。 You could access Create Or Update REST API for app service plan with Azure AD authentication. 您可以使用Azure AD身份验证访问为应用程序服务计划创建或更新 REST API。 For more details, you could refer to this similar issue . 有关更多详细信息,您可以参考此类似问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM