接收器的预取计数小于要求的最大消息

发布于 2025-02-13 07:58:21 字数 501 浏览 0 评论 0原文

我正在使用Azure Service Bus扩展程序进行功能应用程序服务总线触发器,并具有低于扩展设置的PrefetchCount = 30,

 "extensions": {
"serviceBus": {
  "prefetchCount": 30,
  "messageHandlerOptions": {
    "autoComplete": false
  }
}

},

所有功能都可以正常工作,我也可以看到Max 30 Messages处理,但是我也在警告下方。

[16:29:57 WRN]带有标识符mytopic/mytopic-Sub1-22876764-E8B7-4D33-86C4-5F98534A369A的接收器的预取预约计数。使用预取时,在任何单个接收呼叫中,都无法收到比预取更多的计数更多:prefetchcount:30; MaxMessages:1000

此警告意味着什么以及如何摆脱它?

I am using Azure Service Bus extension for Function App service bus trigger and have below extension settings prefetchCount = 30,

 "extensions": {
"serviceBus": {
  "prefetchCount": 30,
  "messageHandlerOptions": {
    "autoComplete": false
  }
}

},

All works fine and MAX 30 messages processing also I can see, but I am getting below warning as well,

[16:29:57 WRN] Prefetch count for receiver with Identifier mytopic/Subscriptions/mytopic-sub1-22876764-e8b7-4d33-86c4-5f98534a369a is less than the max messages requested. When using prefetch, it isn't possible to receive more than the prefetch count in any single Receive call: PrefetchCount: 30; MaxMessages: 1000

What this warning means and how to get rid of it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无言温柔 2025-02-20 07:58:22

此警告意味着什么以及如何摆脱它?

该消息告诉该配置是亚最佳的。要解决此问题,请设置比使用批次接收的消息的预取大于您接收的消息的数量。

What this warning means and how to get rid of it?

The message tells that the configuration is sub optimal. To fix this, set the prefetch larger than the number of the message you're receiving using a batches recieve.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文