azure - 横向扩展 azure 连续 webjob

标签 azure scale out webjob

我正在尝试扩展连续的网络作业。我的服务计划是按标准设置的,因此我能够横向扩展 10 个实例。问题是 webjob 无法横向扩展,并且任何时候都只有一个在运行。

实例数量: enter image description here

功能: enter image description here

函数代码: enter image description here

最佳答案

根据这个article ,我们可以找到原因,请引用。

Behind the scenes, TimerTrigger uses the Singleton feature of the WebJobs SDK to ensure that only a single instance of your triggered function is running at any given time. When the JobHost starts up, for each of your TimerTrigger functions a blob lease (the Singleton Lock) is taken. This distrubuted lock ensures that only a single instance of your scheduled function is running at any time.

关于azure - 横向扩展 azure 连续 webjob,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50763115/

相关文章:

python - Azure Bing 图像搜索客户端抛出找不到资源的错误

asp.net - azure 持续部署失败

azure - 通过 C# 将数据插入到 Azure 数据资源管理器

image - WP7 相当于 Android 9 补丁或 iOS UIImage rightCapWidth?

c# - 如果目标中存在 Blob,如何覆盖 Blob

javascript - D3.js 时间刻度刻度线 - 仅限年和月 - 自定义时间格式

javascript - 缩放 html 以根据屏幕分辨率按比例调整大小

C# 输出参数与返回值

stored-procedures - OperationalError : (1414, 'OUT or INOUT argument 1 for routine ' 存储过程名称'不是 BEFORE 触发器中的变量或 NEW 伪变量')

Jquery悬停显示div并停留