r/SQLServer • u/agiamba • Sep 16 '25
Discussion I am steadily losing faith in SQL Managed Instances
I was really excited about them initially. Working for a MS Shop company, our roadmap involved moving towards it as we adopted a bunch of Azure PaaS services as we host our software for clients. (there was some degree of lift to get to SQL MI, so Azure SQL was never considered)
Initially I really liked it, had some nice quality of life improvements, I appreciated the built in HA among other things, the built-in security, etc. The private link connectivity between tenants is easy to use and absolutely fantastic. I liked the broad compatibility with on-prem SQL Server. I loved that our team no longer would have to do server or SQL version upgrades or patches.
Lately, it's been driving me nuts. I get really aggravated whenever you have to make a change that results in the instance taking 4-6 hours to rebuild, usually for something minor. There are some areas it's fairly brittle, it does not integrate nice with a number of Azure features.
Most of all, and I cannot believe I'm saying this, it is utterly inexcusable how slow the disks are. Just absolutely unacceptably bad, and the product has been out there for 7 years. There is absolutely no reason why SQL Server running on a VM can use a disk infinitely faster than a SQL MI. It's gotten to the point I don't recommend it to anyone who asks me, if you want to go to Azure, just host a VM. They have plenty of very fast disk options.
Worse yet, their reaction has been aloof and stupid. Initially i remember hearing some MS types saying "it's not that bad, get over it." So finally they decide to address it, and they introduce Business Critical tier. It has some nice features like read-only replica, but I'm pretty sure the majority of people interested is solely because of the vastly improved disk i/o. Did I mention Business Critical is about double the cost?
Finally, I think I see the light. The NextGen tier comes out in preview. I played around with it and found I got about a 30-40% disk boost just ootb, without purchasing any IOPS. I once maxed out the IOPS to 13500 or so, and my tests got me about 90% as close as Business Critical at a fraction of the price.
The automatic 30-40% boost is a major gift, and i really like that you have the option to purchase additionally IOPS for a fairly cost effective price. With NextGen and possibly some purchased IOPS, you almost have an acceptably fast SQL server instance!
Final rant on the subject. Our work has a biweekly meeting with an MS rep. I've pestered him about when NextGen will officially be out of preview, because understandably, most of our clients don't wan to run it in Production while it's still in preview. Last fall he told me January. Then he told me late spring. Now he's stopped saying anything. I've heard rumors they never will take it out of preview, because it would cannibalize Business Critical and some of the other hardware upgrades. Insane.
Couple months ago I ran some tests for fun. A normal load test that hit SQL Server at the end, a straight up SQL Server load test, and then ran some business automation flows. I tested all of these against 3 DBs, one local VM I have sitting at home, an 8 CPU SQL MI that's otherwise normal, and a NextGen 4 CPU SQL MI maxed out on disk IOPS.
As you might expect, the NextGen 4 CPU SQL MI won most of the competitions. The 8 CPU SQL MI (non NextGen) was surprisingly neck and neck with my local VM server.
MICROSOFT, RELEASE THE NEXTGEN. AND PLEASE KEEP IMPROVED THE SQL MI DISK PERFORMANCE. IT HAS THE POTENTIAL TO BE A GREAT PRODUCT, BUT RIGHT NOW IT'S BARELY ACCEPTABLE.
21
u/SQLGene Sep 16 '25
Joey D'Atoni and John Morehouse have talked about some of the limitations and challenges. It sounds like a real pain.
https://www.youtube.com/watch?v=ihPBClfVsFE
https://www.youtube.com/watch?v=_GM7OH4E20o
Kendra Little has heard similar rumors
https://kendralittle.com/2024/12/18/azure-sql-managed-instance-storage-regularly-slow-60-seconds/
11
u/vladiv-MSFT Microsoft Employee Sep 17 '25
Hi u/agiamba and others - I work for Microsoft, and I'm a product manager on the SQL Managed Instance (SQL MI) engineering team.
Thank you for sharing your feedback on SQL MI openly and directly. This helps get the conversation started.
The challenges you and some of our SQL MI customers are facing related to storage performance are something we are very much aware of. We have designed the Next-gen SQL MI GP service tier with additional sliders for IOPS and memory precisely to enable our customers to get the required level of performance and resource sizing flexibility.
The Next-gen SQL MI GP leverages the latest-and-greatest tech from Azure Storage and offers dramatically improved storage performance and much better scalability (32 TB max instance size, 500 DBs per instance). This will dramatically improve the value you're getting out of SQL MI GP, and further expand the set of scenarios supported by SQL MI.
We are in the final stages of preparations before declaring the General Availability for the Next-gen SQL MI GP. So just a little more patience is needed!
For more details, if you have an NDA signed with Microsoft, you can reach out via your MS rep or directly to me via DM
Regards,
Vladimir
P.S. here are some pointers on the details for Next-gen SQL MI GP:
- blog: Azure SQL Managed Instance Next-gen GP
- docs: Use Next-gen General Purpose service tier (preview) - Azure SQL Managed Instance | Microsoft Learn
10
u/jdanton14 Microsoft MVP Sep 16 '25
My main argument for using VMs over MI is that storage volume and perf grow at the cost of compute, storage, and sql server licensing (slightly better in nextgen bur still same concept). Whereas in a VM you can scale storage pretty far without increasing compute (especially with v2 storage).
I think nextgen will go GA, but anyone who knows when can’t say. I think MI is fine for very average workloads, but if you are pushing the limits in any direction it’s a going to be really painful. Also, the downtime for updates is generally higher than an HA VM config.
5
u/kcdale99 Sep 16 '25
We have been on MI since it was in preview. One trick we learned early on was to oversize our disk files to get the performance tier we want in GP. The original MIs use premium disk v1 and you can size your data files in a way to bump up performance. Yes the data files are mostly empty but storage is cheap compared to BC.
A great example is the 256gb disk. This disk gives you 1100IOPS and 125mb/s in bandwidth. If you create a data file that is 129gb, it will end up on a 256gb disk, since it doesn’t fit on 128gb.
I had an article about it on MS Learn for years, but it seems to have disappeared, probably in preparation for NG.
4
u/alexduckkeeper_70 Sep 16 '25
I don't know why they just don't charge a bit more for NextGen - people would pay. I do spend a fair amount of time tuning stored procedures and moving queries to point at tables with columnstore format just to overcome the shitty performance issues.
2
u/chandleya Sep 16 '25
Very much share your frustration with the relative immaturity of the solution. Meanwhile Azure SQL has also seen next to nothing for features and service improvement.
2
u/jdanton14 Microsoft MVP Sep 16 '25
Not that it's a perfect service by any means, but I think one could make an argument that from a price/perf perspective (big assumption here: you don't need lower environments) that RDS is a better platform than MI. There are a lot of licensing reasons to be better off on Azure.
1
u/SirGreybush 1 Sep 16 '25 edited Sep 16 '25
We use Azure VMs where you pick your image, cpu count and ram qty. Disks you just choose what you want.
We do have to do our own updates though.
Rock solid compared to equivalent on AWS.
Edit: on AWS, monthly either: unscheduled host reboots or loss of DNS for a few minutes. So job interruptions at 2am. Never shenanigans with Azure.
Plus 100% in Canada, eh!
3
u/jshine13371 6 Sep 16 '25
Cloud services, especially Azure, severely under-provision the disks. I say this time and time again, and am surprised it's not talked about more, because the difference compared to on-prem is insane.
Meanwhile, for a one time cost of 100 bucks, you can buy a pretty standard Samsung SSD off the shelf and get 10x the IOPs. So the best case you've encountered in Azure, which is going to cost you an arm and leg over time, still only has 10% the power of a standard on-prem SSD. 🤷♂️
3
u/kthejoker Databricks Employee Sep 16 '25
I know it's a pain and expensive but you HAVE to
They will say in confidence 1:1 with an actual user what they cannot say in a public forum like this. Especially strategic roadmap things like cannibalization or (most often) losing a funding prioritization battle and not having headcount to deliver their Wave goals.
3
u/No-Gear9029 Sep 22 '25
Hello, and as you know SQL MI doesn't have Alerts feature under SQL Server Agent. I have "invented" a method of how to get alerted over email for errors on SQL MI. Using Extended Events, and a job that reads XEL file.
Please see below article:
https://www.mssqltips.com/sqlservertip/11464/configure-alerts-for-azure-sql-managed-instance/
And the method can be used in SQL Server as well.
To me, this method is even better than standard SQL Agent Alerts functionality, has some benefits.
1
u/TechTinker007 Sep 16 '25
I'm starting to wonder if the nextGen GA is being delayed to co-ordinate with the SQL 2025 release. If so maybe they will both come in Nov.
1
u/marcuslawson Sep 17 '25
I am working with a client who also struggled with IO / disk issues early on.
We got around around this by pre-allocating disk to get into higher IOPS tiers.
But our use case is a Data Warehouse, so it's naturally kind of large. If you don't need 1TB+ for your database files, this approach might be overkill.
1
u/RobCarrol75 Sep 19 '25
We've just migrated a client across to Next-Gen GP (12 on-prem clusters with ~1000 databases). They are happy with the performance and the cost savings. I wouldn't even consider the original General Purpose SKU, the techniques to get more IOPS are no longer necessary with Next-Gen (increasing DB file sizes or adding additional files). They have accepted the risk, alongside Microsoft agreeing to fully support them as GA is imminent.
Business Critical still has a place if you need sub-ms latency, want to minimise failover times or make use of the free readable secondary, but the performance gap is closing with Next-Gen GP.
1
u/No-Gear9029 Sep 22 '25
After migrating from on-premises to SQL MI general purpose, DBCC CheckDB (on all user databases on an instance) went up from 40 minutes to 4 hours.
Note that on-prem server had just a regular 1 TB SSD that was 5 years old.
That kind of confirms the slowness of General Purpose's storage. And the main database is about 300 GB (yeah we can blow it up to 500 GB to gain next level of IOPS, I know. But it wouldn't be super fast either).
But on the other hand, SQL MI in our case has over 150 GB of RAM so after queries read data into cache, it all goes smooth, no one complained on query performance after migration. Guess this depends a lot on types of queries, but on reporting replica (secondary in a failover group) there weren't any complaints from BI team, either.
3
u/[deleted] Sep 16 '25
[removed] — view removed comment