Compute and virtualization

Virtualization host sizing calculator (vCPU:pCPU, RAM, N+1)

How many hypervisor hosts a set of VMs needs, by CPU and memory, with spare hosts for failover.

Unit: GB
Unit: : 1
Unit: GB
Unit: %
Unit: %

Result

Hosts required
43 active + 1 spare
Hosts needed for CPU
3
Hosts needed for RAM
3
Limiting resource
CPU and memory (balanced)
Total vCPUs
24060 physical cores at 4:1
Total RAM with overhead
1,056 GB

Formula

Hosts for CPU = ceil(VMs × vCPU ÷ ratio ÷ (cores × utilization)). Hosts for RAM = ceil(VMs × RAM × (1 + overhead) ÷ (host RAM × utilization)). Total = max(CPU, RAM) + spares.

Assumptions

  • Averages hide outliers. Size very large VMs separately and check that each fits on one host.
  • Memory is not overcommitted. CPU is overcommitted at the ratio you set.

Questions

What vCPU to core ratio should I use?
General-purpose server workloads often run well at 3:1 to 5:1. Busy databases and latency-sensitive systems need much lower ratios. Measure CPU ready time on existing hosts if you can.
What does N+1 mean?
The cluster has one more host than the load needs, so it can lose a host to failure or maintenance and still run every VM.

Related tools