限制节点数 [英] Limit number of Nodes

查看:94
本文介绍了限制节点数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以限制为运行功能而创建的节点数?

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.

推荐答案

您可以尝试设置WEBSITE_MAX_DYNAMIC_APPLICATION_SCALE_OUT.参见 Wiki 了解更多信息.

You can try setting WEBSITE_MAX_DYNAMIC_APPLICATION_SCALE_OUT. See wiki for more details.

David


这篇关于限制节点数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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