Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Sizing Azure Local Infrastructure for SQL Server

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide walks you through sizing Azure Local (formerly Azure Stack HCI) infrastructure for SQL Server workloads. It covers the key decisions—CPU, memory, storage, and networking—so you can purchase the right hardware and avoid performance bottlenecks. You'll need a basic understanding of SQL Server workloads and Azure Local architecture, plus your workload's performance requirements.

What You'll Need

  • Your SQL Server workload details: number of databases, transaction rates, concurrent users, and data size.
  • Performance metrics from your current environment (if migrating): CPU usage, memory usage, IOPS, and latency.
  • Knowledge of Azure Local hardware requirements (certified nodes, networking, and storage).
  • Access to Azure Local sizing tools or documentation (optional but helpful).

Step-by-Step

  1. Define your workload profile. Categorize your SQL Server workloads as OLTP (online transaction processing) or OLAP/data warehousing. OLTP requires high IOPS and low latency; OLAP requires high throughput and large memory. Estimate the total database size and expected growth over 3–5 years.
  2. Determine CPU requirements. Calculate the total CPU cores needed based on your workload's peak CPU usage. A common rule: for OLTP, plan for 1–2 cores per 1,000 transactions per minute (TPM) depending on complexity. For OLAP, more cores are needed for parallel queries. Use your current CPU metrics if available—take the peak CPU utilization and add 20–30% headroom. Remember to account for the hypervisor overhead (about 10% of CPU capacity).
  3. Size memory (RAM). SQL Server uses memory for the buffer pool (cached data). A general guideline: allocate 1–2 GB of RAM per 1 GB of database size for OLTP, and more for OLAP. Also reserve memory for the OS (minimum 8 GB), the hypervisor, and other VMs. Use the formula: Total RAM = (Database size × buffer pool ratio) + OS/hypervisor overhead + VM overhead. For example, a 100 GB OLTP database might need 200 GB RAM total.
  4. Design storage for performance and capacity. Azure Local uses Storage Spaces Direct (S2D) with NVMe, SSD, or HDD. For SQL Server, use NVMe or SSD for data and log files. Calculate required IOPS: sum the IOPS of your workload (e.g., 10,000 IOPS for OLTP). Ensure your storage solution can deliver that at low latency (<5 ms). For capacity, add database size, log files (typically 10–20% of data size), tempdb (same as largest table), and backups (if stored locally). Use the Azure Local sizing tool to determine the number of drives and their types.
  5. Plan networking. Azure Local requires a minimum of 10 GbE for cluster communication. For SQL Server, consider 25 GbE or higher for heavy workloads. Reserve bandwidth for live migration and replication. Ensure your network supports SMB3 for storage traffic (S2D uses SMB).
  6. Choose the number of nodes. Azure Local clusters typically have 2–4 nodes for SQL Server. For high availability, use at least 2 nodes. For performance, more nodes can increase storage throughput. Use the Azure Local sizing tool to simulate different node counts and drive configurations.
  7. Use the Azure Local sizing tool. Microsoft provides a free sizing tool (Azure Stack HCI sizing tool) that takes your workload inputs (VMs, IOPS, storage) and recommends hardware. Run it with your requirements to validate your manual calculations.
  8. Validate with a proof of concept. Before purchasing, set up a small test cluster with representative SQL Server VMs and run load tests (e.g., using SQLIO or DiskSpd) to verify performance. Adjust the design if you see bottlenecks.
  9. Document your sizing. Record the final hardware specifications, including CPU model, RAM per node, drive configuration, and network adapters. This helps with future scaling and troubleshooting.

Common Mistakes

  • Underestimating memory needs: SQL Server will use all available RAM for caching, so more is usually better.
  • Ignoring tempdb: tempdb is a common bottleneck. Place it on fast storage (NVMe) and size it appropriately.
  • Not accounting for hypervisor overhead: Azure Local runs on Hyper-V, so reserve CPU and memory for the host.
  • Using HDDs for SQL Server: HDDs are too slow for most SQL Server workloads, even with caching.
  • Forgetting about backups: If you store backups on the same cluster, include that capacity in your sizing.

Tips

  • Start with a conservative estimate and add headroom. It's easier to scale down than to add hardware later.
  • Use the Azure Local sizing tool to cross-check your manual calculations.
  • Consider using storage QoS to limit IOPS per VM, preventing noisy neighbors.
  • Plan for future growth: leave at least 20% free storage capacity for snapshots and growth.
  • For mission-critical SQL Server, consider using availability groups across nodes for high availability.

Troubleshooting

If your SQL Server workload performs poorly after deployment, check the following:

  • High latency: Verify that your storage is NVMe/SSD and that you're using the correct storage tier. Check S2D health and rebuild status.
  • CPU saturation: Check the host's CPU usage. If it's consistently above 80%, you may need more cores or optimize SQL queries.
  • Memory pressure: Monitor SQL Server's Page Life Expectancy (PLE). If it's low (<300 seconds), you need more RAM.
  • Network bottlenecks: Use performance monitors to check network throughput. Ensure you have enough bandwidth for storage traffic.
  • VM placement: Ensure VMs are balanced across nodes. Use Azure Local's VM load balancing feature.

Frequently Asked Questions

What is the minimum RAM for SQL Server on Azure Local?

There's no official minimum, but for a small workload, 32 GB per node is a starting point. For production, plan for at least 128 GB per node.

Can I use HDDs with Azure Local for SQL Server?

Technically yes, but it's not recommended. HDDs have high latency and low IOPS, which will bottleneck SQL Server. Use NVMe or SSD.

How many nodes do I need for high availability?

At least 2 nodes. For better resiliency and performance, consider 3 or 4 nodes.

Should I use Storage Spaces Direct or a SAN?

Azure Local uses Storage Spaces Direct by design. It's simpler and more cost-effective than a SAN for most workloads.

How do I estimate IOPS for my SQL Server?

Use performance counters from your current environment or tools like SQLIO. As a rough guide, a single SQL Server transaction can generate 5–10 IOPS, so 10,000 TPM would need 50,000–100,000 IOPS.

Can I mix drive types in an Azure Local cluster?

Yes, you can have a mix of NVMe and SSD, but configure them in different storage tiers. SQL Server data should be on the faster tier.