Share via

Azure SQL Managed Instance very slow to create new databases

Nic 0 Reputation points
2024-06-07T21:53:29.5033333+00:00

I have two Azure SQL Managed Instances in East US. Neither of them are very loaded at the moment.

Instance1 = General Purpose - Standard Series (Gen5) 4 core

Instance2 = General Purpose - Standard Series (Gen5) 8 core

Creating a new database (simple create database statement) takes 20 seconds in Instance1 and takes 70+ seconds in Instance2.

What is causing Instance2 to take so long to create a database? Instance1 is actually more loaded (more activity and more database) than Instance2 at the moment. What should I be looking for? How can I investigate this?

Backup/retention policies are the same for both instances.

My application has been timing out trying to create databases on instance2. We keep increasing the timeout time, but this big discrepancy has me worried that something is wrong with instance2.

Azure SQL Database

1 answer

Sort by: Most helpful
  1. Ioannis Katsaounis 181 Reputation points Microsoft Employee
    2024-06-08T08:43:08.31+00:00

    Dear Nic,

    The Azure SQL MI is deployed in which mode regarding networking? VNet-local endpoint, Public endpoint or Private endpoint?

    Each one of these options uses different connection type:

    • Public endpoint uses Proxy
    • Private endpoint users Proxy
    • VNet-local endpoint uses proxy and redirect connection.

    Proxy and Redirect: Proxy is the default while Redirect is the recommended one.

    https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/connection-types-overview?view=azuresql#connection-types

    The above settings are probably related to the timeout.

    Also, all other settings like Defender for Cloud or encryption are the same?

    I would also had a look into this: https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/tempdb-configure?view=azuresql&tabs=ssms

    I am not a DBA but it might help.

    If you encounter any future issues, please feel free to contact us, and we will be pleased to assist you further.

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.

    Regards,

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.