问题描述
是否有一种方法可以限制为运行功能而创建的节点数?
Is there a way to limit the number of nodes created to run a function?
我正在使用ServiceBus触发器,并且可以使用maxConcurrentCalls,但这仅适用于每个节点内的消息.
I am using the ServiceBus Trigger and I can use the maxConcurrentCalls but that only applies to messages inside each node.
假设我向总线发送了30条消息,并且maConcurrentCalls设置为1,我仍然可以看到30个不同的节点(或VM),每个节点处理一条消息.因此,实际上我正在并行处理30条消息,而不是我的目标1.(只是一个例子)
Lets say I send 30 messages to the bus and maConcurrentCalls is set to 1, I can still see 30 different Nodes (or VMs), each of them processing one single message. So in reality I am processing 30 messages in parallel instead of my goal of 1. (just an example)
在我的场景中,这30条消息正在Oracle数据库上造成瓶颈,并引发了各种错误.
In my scenario those 30 messages are creating a bottleneck on the Oracle database throwing different kind of errors.
因此,如果我可以限制为处理工作而创建的虚拟机的数量,那么我将能够解决该瓶颈
So if I could limit the number of vms created to handle the work, I would be able manage that bottleneck
Luciano.
推荐答案
David
这篇关于限制节点数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!