我有一个在美国西部地区运行的高级Azure Service Bus。多个网站和功能使用服务总线,一切都运行得相当顺利。除了我在英国南部主持的一个Azure函数。它在日志中产生超时错误,不是每天,而可能是每周,如下所示:
Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while executing function: UptimeChecker
---> Microsoft.Azure.ServiceBus.ServiceBusTimeoutException: The operation did not complete within the allocated time 00:00:59.9999875 for object message.Reference: 0bc5a54a9dd14d67b64a1a35f0e1bae3_G11, 8/25/2020 10:01:08 AM
---> System.TimeoutException: The operation did not complete within the allocated time 00:00:59.9999875 for object message.
at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Azure.Amqp.SendingAmqpLink.EndSendMessage(IAsyncResult result)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Azure.ServiceBus.Core.MessageSender.OnSendAsync(IList`1 messageList)
--- End of inner exception stack trace ---
at Microsoft.Azure.ServiceBus.Core.MessageSender.OnSendAsync(IList`1 messageList)
at Microsoft.Azure.ServiceBus.RetryPolicy.RunOperation(Func`1 operation, TimeSpan operationTimeout)
at Microsoft.Azure.ServiceBus.RetryPolicy.RunOperation(Func`1 operation, TimeSpan operationTimeout)
at Microsoft.Azure.ServiceBus.Core.MessageSender.SendAsync(IList`1 messageList)我很惊讶为什么这会发生在英国南部。我还有在欧洲和澳大利亚数据中心运行的其他功能。那么是什么导致英国南部超时呢?
发布于 2020-08-29 16:17:25
发布我自己的问题的答案,向访问原始问题的人提供某种解释。我不知道为什么会有暂停。但在重新创建函数后,一切都恢复正常。对于其他基于消耗的函数,我还遇到了一系列其他问题。所有的应用程序都是几年前创建的。去检查你的函数的应用服务计划名称。如果它包含区域(例如: WestUSPlan),您应该重新创建函数应用程序并再次部署它。新名称将为ASP-*。
https://stackoverflow.com/questions/63576639
复制相似问题