小编Ema*_*aul的帖子

Azure SQL 单一数据库 DTU 超时已过期错误

我正在使用 Azure SQL 单一数据库 DTU 购买模型。平均负载似乎低于 10%。有时我会收到错误,现在几乎每天都会发生。我使用 EF Core 3.1 进行数据库访问。该数据库通过使用 ASP.NET core 3.1 构建并部署在 Linux Azure 应用服务上的 API 进行访问。
错误是:
Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (258): Unknown error 258

堆栈跟踪:

An exception occurred in the database while saving changes for context type 'MTP.Api.Persistence.MTPDbContext'.
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. …
Run Code Online (Sandbox Code Playgroud)

sql-server entity-framework-core azure-sql-database asp.net-core azure-appservice

5
推荐指数
1
解决办法
3489
查看次数