SQL Server Is Slower After a Migration

I’ve heard this same comment more times than I’d like to recall. The cause can vary depending on the type of migration; however, I want to focus on the hardware side, which is the most common issue I’ve seen in on-prem to cloud migrations.

Too many times, customers have assumed that resources map 1-to-1. They assume that if they had 32 cores, 512 GB of RAM, and 2 TB of SSD storage on-premises, they would need that exact same configuration in the cloud and be just fine.

Customers need to be aware of the speed of their current processors compared to what they are moving to. Running at 3.x GHz vs. 2.x GHz across 32 cores can make a big difference. You should also look at benchmark speeds for single-threaded vs. multi-threaded workloads.

However, the #1 issue I’ve seen is related to disk I/O. Most customers on-prem are not throttled by their storage’s IOPS and throughput. That is very different in the cloud. Every provider I’ve worked with enforces performance thresholds based on storage type, disk size, and VM size. You must benchmark your existing needs and match those against what you are planning to build in the cloud.

On-premises SSD ≠ Cloud SSD(or: On-premises SSD != Cloud SSD)

Consider this: a standard USB 2.0 flash drive is quoted at 60 MB/s (with real-world speeds closer to 30 – 40 MB/s), while a consumer-grade SATA III SSD from a big-box store hits around 550 MB/s. With mid-range Gen 4 NVMe gear, you’ll get around 5,000 – 7,000 MB/s, while enterprise-class storage solutions can provide greater than 15,000 MB/s with high sustained write performance and lower latency under heavy simultaneous workloads. High-end consumer PCIe Gen 5 NVMe disks can also hit 15,000 MB/s in raw sequential throughput.

What I’ve seen way too many customers do is assume they’ll get similar or better disk performance in the cloud just because they see “SSD” and assume it’s all the same. Depending on the cloud provider, you need to research the various disk types offered and check their overall MB/s or MiB/s (data throughput) as well as IOPS (input/output operations per second). Not only do you need to know the disk’s performance limits, but it is also very likely that the VM itself will be the bottleneck. VMs have strict limits on storage throughput. You can easily attach a 10,000 MB/s disk to a VM that only allows 250 MB/s through it.

If you are planning an on-prem to cloud migration, the #1 thing to do is baseline your existing workload. Don’t just benchmark your raw server hardware; see what your actual workload demands and size the cloud environment to handle or exceed that baseline. There are tons of options available, including configurable constrained cores (in Azure), memory-optimized virtual machines, storage-optimized instances, and more.

Don’t be caught off guard by a cloud move. Figure out what your requirements are, size the environment accordingly, and then determine if it is a cost-effective move.

Leave a Reply

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