Introduction
As the OpenShift Virtualization Performance & Scale team, our primary focus is ensuring that hyperconverged infrastructure can handle massive workloads under realistic operational conditions. Live migration is a cornerstone feature for cluster maintenance, workload balancing, and seamless updates. However, executing live migrations at high scale, i.e, up to 10,000 Virtual Machines (VMs) presents unique control plane and storage synchronization challenges.
In this technical blog, we walk through our recent high-scale live migration test suite. We systematically evaluated migration concurrency limits, control plane resource consumption, guest workload dirty memory impacts, multiIO thread optimizations, and node drain mechanics across density profiles reaching 10,000 VMs.
Executive Summary
At high scale, live migration performance is shaped primarily by control plane resources and migration concurrency limits. Control plane processing scales predictably and linearly up to 2,000 VMs under default and higher Openshift Virtualization live migration limits. Beyond 4,000–5,000 VMs within a single namespace, object reconciliation overhead and API server load hit an inflection point, causing non-linear throughput patterns and control plane resource spikes. Multi-namespace distribution successfully mitigates this contention, enabling smooth execution across 10,000 VMs.
Dirty memory generation rates have a bounded impact on migration duration as long as dirtying rates remain below available network bandwidth. Raising concurrency limits from default settings (2 outbound per node / 5 cluster-wide) to highly parallelized (10 outbound per node / 50 cluster-wide) helps with migration component scale testing, and in this workload case with combined dirty rates remaining lower than the available network bandwidth, cuts total migration duration by up to two-thirds without destabilizing co-located OpenShift Data Foundation (ODF) storage daemons.
Test Environment & Baseline Optimizations
To evaluate performance without artificial bottlenecks, our testbed leverages hyperconverged worker nodes co-locating Ceph OpenShift Data Foundation (ODF) storage and virt-launcher guest workloads.
Infrastructure Setup
- Large Cluster: The cluster used for this testing included 240 node workers. This helped us to push the number of VMs without stressing the node / VM density.
- Dedicated Migration Network: Configured on a dedicated 25 Gigabit interface with Jumbo Frames (MTU 9000) to isolate bulk memory transfers from standard pod network traffic.
Tools used
- github.com/gqlo/vstorm - to create VMs and generate dirty data.
- Migration dashboard.
Test Results
Scaling from 500 to 10,000 VMs with no IO
We evaluated migration workflows across progressive scale tiers (500, 1,000, 2,000, 5,000, and 10,000 VMs) under varying migration concurrency limits. Migration concurrency was tested across three tiers:
- Tier 1 (2/5): 2 parallel outbound migrations per node / 5 cluster-wide.
- Tier 2 (10/50): 10 parallel outbound migrations per node / 50 cluster-wide.
- Tier 3 (50/250): 50 parallel outbound migrations per node / 250 cluster-wide.
Note: Migration limit increment can be beneficial as long as the cluster can support in terms of CPU load, memory and network bandwidth.

No Issues Up to 2,000 VMs (Linear Scaling)
From 5 VMs up to 2,000 VMs, the control plane and the data plane performed exceptionally well. Total migration duration scaled predictably and linearly with the number of VMs.
- At a concurrency limit of 2/5, migrating 500 VMs took ~1,053 seconds (~17.5 mins).
- Scaling to 1,000 VMs took ~2,030 seconds (~33.8 mins), maintaining a linear 2x scaling ratio.
- At 2,000 VMs, total migration time was ~4,022 seconds (~67 mins), again showing a clear linear progression with minimal API latency overhead.
During these runs, virt-controller CPU usage remained well-contained below 3.5 cores, and memory utilization remained stable around 5.3 GB to 5.8 GB.
The 5,000 VM Threshold & Resource Inflexion
When scaling the workload to 5,000 VMs, we hit a critical resource inflection point:
- Control Plane Load: At 5,000 VMs (under the 50/250 concurrency limit),
virt-controllerCPU usage spiked to ~6.71 cores, while memory consumption steadily climbed to ~13.2 GB. - Non-Linear Throughput: While overall migration completed, migration network throughput exhibited non-linear patterns. At high scale limits, control plane scheduling queues and Prometheus telemetry scraping experienced intermittent gaps.
- Namespace Density Limit: Based on our test results, 4,000 to 5,000 VMs per namespace represents the practical maximum density limit before API object processing and namespace-level reconciliation overhead begin impacting migration efficiency.
10,000 VMs Across 40 Namespaces
To evaluate enterprise-scale multi-tenancy, we tested 10,000 VMs distributed across 40 namespaces. Distributing guest workloads across multiple namespaces reduced single-namespace API contention and allowed the control plane to process migration requests smoothly.
Live Migration with Dirty Data
We live-migrated 200 VMs while varying the percentage of dirty memory data and measured the total migration duration. vstorm was used to generate the dirty data:
vstorm --cores=4 --memory=8Gi --cloudinit=workload/cloudinit-dirty-mem-pages.yaml --dv-url=<qcow URL of Data Volume> --env DIRTY_RATE_FRACTION=0.1 --vms=1The results indicated that migration duration stayed consistent across different dirty data percentages, provided the dirty memory generation rate did not exceed the dedicated migration network bandwidth. It was observed that migration timing hovered around 400-430 seconds for default migration limits while the migration timing reduced by one-third (~135-150 seconds) when the migration limit was increased to 10 per Node and 50 per cluster.
The chart below summarizes the data gathered across our test runs:

Feature Validations & Infrastructure Resiliency
MultiIO Thread Support with Native CNV Migration
We confirmed that configuring multiIO threads for VM storage disks operates cleanly with native OpenShift Virtualization (CNV) migration workflows. Under high concurrent write workloads, multiIO threading offloaded block I/O operations effectively, preventing guest vCPU stalls during live memory transfers.
Node Drain Performance & ODF PodDisruptionBudgets
In earlier testing on an experimental 240-node cluster, node drains frequently stalled due to strict Ceph PodDisruptionBudgets (PDBs) blocking OSD pod evictions when multiple nodes drained simultaneously. A bug was opened for further investigations into this issue.
In 100 node cluster setup, node drain operations (oc adm drain <node> --force --ignore-daemonsets) completed smoothly. Workload VMs were live-migrated off target nodes without triggering storage locks or leaving nodes in an un-evictable state.
# Executing forced node drain during active scale migration
oc adm drain <node> --force --ignore-daemonsets --delete-emptydir-dataAnomalies & Bugs Under Active Investigation
While core migration infrastructure proved capable of moving thousands of VMs, testing at these scale boundaries exposed edge-case defects that are under investigation:
- Post-Migration VM Anomalies: Investigating guest agent status reporting failures observed on a small fraction of VMs following migration completion.
- Migration Controller Handoff Stalls: Investigating transient state reconciliation delays under extreme parallel queue limits.
- High Scale Network Throughput Non-Linearity: Analyzing network driver and socket transfer bottlenecks that cause non-linear throughput drops during 5,000+ VM migration runs.
Key Takeaways & Recommendations
- Linear Scalability to 2,000 VMs: Up to 2,000 VMs, OpenShift Virtualization live migration scales cleanly with predictable time-to-completion ratios.
- Namespace Density Guidance: Restrict density to 4,000–5,000 VMs per namespace. For higher cluster counts (e.g., 10,000 VMs), distribute VMs across multiple namespaces to avoid object reconciliation bottlenecks.
- Control Plane Sizing: When planning for 5,000+ VMs, ensure control plane nodes have sufficient CPU and RAM headroom to accommodate virt-controller spikes (budgeting at least 8 CPU cores and 16GB+ RAM dedicated to virtualization control plane pods).
- Tune Concurrency Limits: Raising migration limits from 2/5 to 10/50 significantly reduces total migration duration (e.g., cutting 5,000 VM migration time from ~2.8 hours down to ~1 hour) without overloading hyperconverged OSD storage daemons. Increased concurrency limits can be beneficial as long as the cluster can support VM migration in terms of CPU load, memory and network bandwidth.
Thanks to the Red Hat Performance and Scale Team, with special thanks to Shekhar Berry, Jenifer Abrams and Robert Krawitz for guidance and reviewing this document.