Saturday , March 2 2024

DTU Problem For Azure SQL Database

In today’s article we will talk about DTU Problem For Azure SQL Database.

If you are using Azure SQL database, you may have encountered a concept called DTU (Database Transaction Unit). DTU is a blended measure of CPU, Data, IO, Log Writes and memory.

If you receive a warning that the database is consuming high DTUs, the first step to investigate the cause would be to find out which value of the DTU actually went up ( CPU, Data,IO etc ).

You can see the average of the DTU values of the last 14 days using the query below.

The start and end times in the printout are in UTC. You need to pay attention to this.

If the DTU alarm has now occurred, you can run the following query for the affected database. (It gives the data collected every 15 seconds.)

The DTU graph in the Azure Portal is plotted using the same data queried by the DMVs in the two scripts above.

Using the above queries, we learned from which metric the DTU alarm originates. Now it’s time to review criminal inquiries.

We can do this by querying the Query Store data. You can find the content about the query store on mshowto soon.


About Çağlar Özenç

Leave a Reply

Your email address will not be published. Required fields are marked *