简体   繁体   English

限制 Azure Function 重启率

[英]Limit Azure Function restart rate

I already faced similar problem few times: Azure Function with ServiceBusTrigger by some reason (misconfiguration, infrastructure issues, doesn't really matter) fails to connect to ServiceBus (so it happens on trigger level) and it leads to two issues:我已经几次遇到过类似的问题:由于某种原因(配置错误、基础结构问题,并不重要),带有 ServiceBusTrigger 的 Azure 函数无法连接到 ServiceBus(因此它发生在触发器级别),并导致两个问题:

  1. It tries to restart all the time, increasing CPU consumption它一直试图重新启动,增加CPU消耗
  2. It generates literally a millions of exceptions in AppInsights, which leads to quota exceedance Practically every error in configuration means significantly increased bills and requires thorough monitoring after every deployment, which is annoying and error prone solution.它会在 AppInsights 中生成数百万个异常,从而导致超出配额 实际上,配置中的每个错误都意味着显着增加的费用,并且每次部署后都需要进行全面监控,这是一个烦人且容易出错的解决方案。

So, my question: If there is a way to set some delay between restart attempts to (for example) one second?所以,我的问题是:是否有办法将重新启动尝试之间的延迟设置为(例如)一秒? And, as addition - is there way to limit amount of restart attempts and then shut down the Function?而且,作为补充 - 有没有办法限制重启尝试的数量然后关闭该功能?

Establishing a connection to the broker to fetch messages is Functions responsibility, Scale Controller.建立与代理的连接以获取消息是函数的职责,Scale Controller。 That aspect is entirely abstracted from customers and not configurable.该方面完全从客户中抽象出来,不可配置。 I suggest raising an issue with Azure Functions team, likely under the Runtime repo .我建议向Azure Functions团队提出问题,可能在Runtime repo 下

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 您能否对存储队列的 Azure Function 或 output 进行速率限制? - Can you rate limit an Azure Function or output of a Storage Queue? Azure 队列触发器 - 出队速率限制 - Azure Queue Trigger - Dequeue rate limit Azure API 管理速率限制 By Json 正文 - Azure API Management Rate Limit By Json Body AZURE账户中请求的速率限制是多少? [Azure-存储][REST] - What is the rate limit of request in AZURE account? [Azure-Storage][REST] 有没有办法以编程方式重新启动 azure 函数 - Is there a way to programmatically restart an azure function 如何计算Azure API管理中的速率限制 - How is rate-limit in Azure API Management calculated 如何通过 azure 应用服务配置基于 IP 的速率限制? - How to configure IP based rate limit via azure app service? Azure Active Directory 令牌请求速率限制是什么? - What is Azure Active Directory token request rate throttle limit? 有没有办法在 Azure API 管理中通过订阅改变速率限制的值 - Is there a way of varying the value of the rate limit by subscription in Azure API Management Microsoft Azure 认知服务 - 说话人识别 - 速率限制 - Microsoft Azure cognition services - Speaker Recognition - Rate Limit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM