gpt4 book ai didi

azure - 横向扩展 azure 连续 webjob

转载 作者:行者123 更新时间:2023-12-03 02:59:18 24 4
gpt4 key购买 nike

我正在尝试扩展连续的网络作业。我的服务计划是按标准设置的,因此我能够横向扩展 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com