从 Azure 功能将事件发布到 Azure 事件中心:无法为当前会话或连接分配更多句柄
Posting events to Azure Event Hub from Azure Function: Cannot allocate more handles to current session or connection
我们有一个 Azure 函数,它通过内置的事件中心集成绑定将消息发布到 Azure 事件中心,然后用于提供流分析作业。这一切都很好 运行 然后昨晚突然我们开始在写入事件中心的 Azure 函数中出现以下错误:
Exception while executing function: Functions.LocationEventPublish. Microsoft.Azure.WebJobs.Script: One or more errors occurred. Microsoft.ServiceBus: Cannot allocate more handles to the current session or connection. The maximum number of handles allowed is 4999. Please free up resources and try again.
找到下面的 SO post 并理解为什么我们得到这个和建议的解决方案。但是,当使用内置集成绑定从 Azure 功能发布到事件中心时,我们应该如何只分配客户端的单个实例?停止和启动我们的 Azure 函数解决了这个问题,但似乎这是使用 Azure 函数填充事件中心的一个相当大的问题。
Event Hub Exception Cannot Allocate More Handles To The Current Session or connection
Functions 的 EventHub 绑定已经对客户端进行了一些缓存(请参阅 https://github.com/Azure/azure-webjobs-sdk/blob/ffae7c86ea87fd73748186bac2c38c5401b80f68/src/Microsoft.Azure.WebJobs.ServiceBus/EventHubs/EventHubConfiguration.cs#L24)。
你能分享你的function.json吗?您是否绑定了许多不同的事件中心?
我们有一个 Azure 函数,它通过内置的事件中心集成绑定将消息发布到 Azure 事件中心,然后用于提供流分析作业。这一切都很好 运行 然后昨晚突然我们开始在写入事件中心的 Azure 函数中出现以下错误:
Exception while executing function: Functions.LocationEventPublish. Microsoft.Azure.WebJobs.Script: One or more errors occurred. Microsoft.ServiceBus: Cannot allocate more handles to the current session or connection. The maximum number of handles allowed is 4999. Please free up resources and try again.
找到下面的 SO post 并理解为什么我们得到这个和建议的解决方案。但是,当使用内置集成绑定从 Azure 功能发布到事件中心时,我们应该如何只分配客户端的单个实例?停止和启动我们的 Azure 函数解决了这个问题,但似乎这是使用 Azure 函数填充事件中心的一个相当大的问题。
Event Hub Exception Cannot Allocate More Handles To The Current Session or connection
Functions 的 EventHub 绑定已经对客户端进行了一些缓存(请参阅 https://github.com/Azure/azure-webjobs-sdk/blob/ffae7c86ea87fd73748186bac2c38c5401b80f68/src/Microsoft.Azure.WebJobs.ServiceBus/EventHubs/EventHubConfiguration.cs#L24)。
你能分享你的function.json吗?您是否绑定了许多不同的事件中心?