扩展时限制*标准*天蓝色webjob的实例数

编程入门 行业动态 更新时间:2024-10-25 14:33:07
本文介绍了扩展时限制*标准*天蓝色webjob的实例数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

非常类似于(但不是重复!)这个问题:横向扩展时限制天蓝色webjob实例的数量

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

我希望能够在我们的标准网络应用程序中限制一个网络作业的实例数量.我知道有 singleton 实例,但希望能够将其限制为1以外的数字.

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?

请注意为什么这不是 q. 45067648 :

我问了上一个问题,而没有考虑根据应用程序服务运行在高级还是标准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.

在"创建连续运行的WebJob "部分,您可以看到: 如果您的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 在此线程:使用每个应用程序缩放功能(仅适用于高级SKU应用程序服务计划).如果您不想将您的 Standard SKU App Service计划扩展到 Premium SKU App Service计划,则可以创建另一个新的 Standard SKU App Service使用要运行WebJob的特定数量的实例进行计划,这样,WebJob不会引起与其他Web应用程序的资源争用.

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的实例数

本文发布于:2023-11-15 22:57:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1598707.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:天蓝色   时限   实例   标准   webjob

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!