Azure功能:应用程序冻结-没有任何错误消息 [英] Azure Functions: Application freezes - without any error message

查看:44
本文介绍了Azure功能:应用程序冻结-没有任何错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Azure Functions应用程序,它有时会冻结"并停止处理消息和定时事件.

I have an Azure Functions application which once in a while "freezes" and stops processing messages and timed events.

这种情况发生时,我在日志(AppInsight)中什么都看不到,也没有异常或任何不熟悉的痕迹.

When this happens I do not see anything in the logs (AppInsight), neither exceptions nor any kind of unfamiliar traces.

该应用程序具有以下功能:

The application has following functions:

  • 一个正在处理来自Service Bus主题订阅的消息(属于另一个应用程序)
  • 内部存储队列中的一个处理
  • 每半小时触发一次基于计时器的功能
  • 四个HTTP端点

我们的生产应用运行正常.这是由于内部仪表板(在办公室的大屏幕上)导致的,该仪表板每5分钟轮询一次HTTP端点,并使其保持活动状态.

Our production app runs fine. This is due to an internal dashboard (on big screen in the office), which polls one of the HTTP endpoints every 5 minutes, there by keeping it alive.

我们的测试,舞台和预生产应用会在一段时间后停止,停止处理消息和计时器事件.

Our test, stage and preproduction apps stop after a while, stopping to process messages and timer events.

此问题与我的上一个问题基本相同,但是没有错误的消息是当时的重点.现在,由于我们的部署已修复,错误消息更少了.

This question is more or less the same as my previous question, but the without error message that was in focus then. Much fewer error messages now, as our deployment has been fixed.

推荐答案

更详细的分析可以在在消耗计划中,所有触发器都在主机中注册,以便可以对其进行处理,从而导致在适当的时间调用我的函数.主机的这一部分还处理可伸缩性.

On a consumption plan, all triggers are registered in the host, so that these can be handled, leading to my functions being called at the right time. This part of the host also handles scalability.

我有两个错误:

  1. 错误的部署.按照文档中所述的 进行基于zip的部署 .
  2. 格式错误的 host.json .JSON中的注释不正确,尽管它在Azure函数中的大多数情况下都可以使用.但不是全部.
  1. Wrong deployment. Do zip based deployment as described in the Docs.
  2. Malformed host.json. Comments in JSON are not right, although it does work in most circumstances in Azure Functions. But not all.

这些站点现在在可用性和可伸缩性方面都按预期工作.

The sites now works as expected, both concerning availability and scalability.

感谢Azure Functions团队的成员(Ling Toh,Fabio Cavalcante,David Ebbo)为我提供帮助.

Thanks to the people in the Azure Functions team (Ling Toh, Fabio Cavalcante, David Ebbo) for helping me out with this.

这篇关于Azure功能:应用程序冻结-没有任何错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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