从昨天下午开始,我们的Azure网站(再次)无法工作,因为它无法连接到Azure SQL Server数据库。我们什么都没变。数据库可以通过Management访问,并且在本地运行我的网站(或网络作业)时,它可以访问相同的数据库。
上周我们也有过类似的事情,那时候只花了几个小时。
我们的日志记录中几乎没有任何错误消息,但是我们确实得到了这个消息:
Maximum number of retries (3) exceeded while executing database operations with 'SqlAzureExecutionStrategy'.
See inner exception for the most recent failure.
System.Data.Entity.Infrastructure.RetryLimitExceededException: Maximum number of retries (3) exceeded while executing database operations with 'SqlAzureExecutionStrategy'.
See inner exception for the most recent failure. --->
System.Data.Entity.Core.EntityException: The underlying provider failed on Open. --->
System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) --->
System.ComponentModel.Win32Exception: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- End of inner exception stack trace ---今天清晨,这个网站仍然无法登录,但现在它似乎又起作用了。我需要知道为什么会发生这种事,我们怎样才能防止这种情况发生。
卫生服务没有问题。我们弹性池的资源利用:

紫色区域是我们无法登录的时刻。100%的时刻是我们的数据仓库正在为我们的PowerBI仪表板进行更新。
Azure中的其他指标显示利用率和内存利用率都很低。因为webapp正在响应,所以没有记录http 5xx或4xx。
因为我们没有附加的服务合同,所以我们不能提交机票。我们正在考虑升级。
发布于 2020-02-27 09:34:13
首先要做的是检查Azure门户中的服务健康状况,是否存在与数据库或web应用程序相关的任何问题或事件。
第二,检查您的数据库的性能指标,您是否达到了任何限制,或者在错误发生时看到了很大的峰值?
最后,如果所有这些都没有帮助,那么您将需要使用MS来提高支持票,并让他们检查发生了什么。
https://serverfault.com/questions/1004791
复制相似问题