扩展时限制*标准*天蓝色webjob的实例数 [英] Limit number of instances of a *standard* azure webjob when scaling out

查看:123
本文介绍了扩展时限制*标准*天蓝色webjob的实例数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

非常类似于(但不是重复!)这个问题:

Very similar to (but not a duplicate of!) this question: Limit number of instances of an azure webjob when scaling out

我希望能够在我们的标准网络应用程序中限制一个网络作业的实例数量.我知道有

I would like to be able to limit the number of instances of a webjob within our standard webapp. I am aware of the possibility of having a singleton instance but would like to be able to limit this to a number other than 1.

这样的事情可能吗?如果不是这样,

Is such a thing possible? If not, are there any sensbile workarounds for the type of scenario described in q. 45067648 for those of us running on the Standard App Service?

请注意为什么这不是 我问了上一个问题,而没有考虑根据应用程序服务运行在高级还是标准SKU上可能会有不同的答案. Amor给出的答案对于使用高级SKU的用户而言是一个理想的答案,但不适用于使用标准SKU的用户.我考虑过修改原始问题,但是在针对meta(这里),发现这最好是提出一个新问题

I asked the previous question without considering that there could be a different answer depending on whether the app service was running on a premium or standard SKU. The answer Amor gave would be an ideal answer for those running on the premium SKU but is unsuitable for those running the standard SKU. I considered amending the original question but, after advice on meta (here and here), discovered this is best posed as a new question

推荐答案

在我们的标准web应用程序中限制一个webjob实例的数量.

limit the number of instances of a webjob within our standard webapp.

在" 如果您的Web应用程序在多个实例上运行,则连续运行运行WebJob将在您的所有实例上运行". .它使我们能够制作连续Web作业只能在一个实例上运行.

Under "Create a continuously running WebJob" section in the article, you can see: "If your web app runs on more than one instance, a continuously running WebJob will run on all of your instances". And it enables us to make continuous WebJob to run on only one instance.

要限制运行连续WebJob的实例数量, Amor

To limit the number of instances that continuous WebJob run on, Amor has gave you a workaround in this thread: using Per app scaling feature (available only for Premium SKU App Service plans). If you do not want to scale your Standard SKU App Service plan to Premium SKU App Service plan, you can create another new Standard SKU App Service plan with specific number of instance that you want to run your WebJob, in this way, your WebJob will not cause resource contention with other web apps.

此外,您还可以提供有关 Azure UserVoice 的反馈.

Besides, you can give a feedback on Azure UserVoice.

这篇关于扩展时限制*标准*天蓝色webjob的实例数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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