简体   繁体   English

Azure 弹性池数据库 SQL 连接超时 - DTU 购买 model

[英]Azure Elastic Pool Database SQL Connections are Timing Out - DTU Purchasing model

We moved my application to the cloud I've moved a local VM SQL database to Azure SQL Elastic Pool databases 50 DTU.我们将我的应用程序移至云端 我已将本地 VM SQL 数据库移至 Azure SQL 弹性池数据库 50 DTU。 Our database size approximately 4Gb.我们的数据库大小大约为 4Gb。 The problem is that the connection to that new Azure SQL database is so slow and getting command timeout.问题是与新的 Azure SQL 数据库的连接速度太慢并且命令超时。 We use the EF6 database first to handle the SQL stuff.我们首先使用 EF6 数据库来处理 SQL 的东西。

I have experienced this problem in the last few months.在过去的几个月里,我遇到了这个问题。 After combing through the logs, the spikes in database traffic that maxed out the DTU limit for my SQL Server.梳理日志后,数据库流量的峰值超出了我的 SQL 服务器的 DTU 限制。

Aside from increasing DTUs除了增加 DTU

  1. Is there a way to extend the remote command timeout to the azure SQL Elastic Pool database?有没有办法将远程命令超时扩展到 azure SQL 弹性池数据库?

  2. Is there a way setup fixed DTU usage for each elastic pool database separately?有没有办法分别为每个弹性池数据库设置固定的 DTU 使用情况?

Is there a way to extend the remote command timeout to the azure SQL Elastic Pool database?有没有办法将远程命令超时扩展到 azure SQL 弹性池数据库?

Command timeout is a client-side setting.命令超时是客户端设置。 SQL Server doesn't have a server-side command timeout. SQL 服务器没有服务器端命令超时。

But you should troubleshoot your query performance.但是您应该对查询性能进行故障排除。 To stay as low as 50DTU for the pool you'll need to be very careful of expensive queries.要使池保持低至 50DTU,您需要非常小心昂贵的查询。 See eg Query Performance Insight参见例如查询性能洞察

Is there a way setup fixed DTU usage for each elastic pool database separately?有没有办法分别为每个弹性池数据库设置固定的 DTU 使用情况?

You can set min and max per database: https://docs.microsoft.com/en-us/azure/azure-sql/database/elastic-pool-manage您可以设置每个数据库的最小值和最大值: https://docs.microsoft.com/en-us/azure/azure-sql/database/elastic-pool-manage

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM