Introduction
As the OpenShift Virtualization Performance & Scale team, we know that testing loaded cluster upgrades are an important part of ensuring stability and operational efficiency, all without causing VM workload downtime thanks to VM live migrations and proper node drain handling. This blog will walk through some example OpenShift cluster upgrade scenarios we’ve tested at “high scale”, which in this case is defined as 100 nodes and 10,000 VMs running active workloads.
Executive Summary
Overall we’ve tested multiple successful rounds of high scale cluster upgrades with our max tested limit of 10,000 VMs running active workload (in this case specifically designed to “dirty memory” at a specified rate in order to stress test live migration scalability). Our very high scale testing usually focuses on EUS OpenShift releases, in this latest case the focus was upgrading to multiple 4.22 z-streams as well as upgrading the cluster to a pre-GA engineering build. Thanks to prior high scale testing focused around pushing very highly parallel VM migration limits, the control plane components have been well hardened to handle a typical cluster upgrade scenario as described here. Generally, with our lab hardware, control plane upgrades took around 1.5 hours, while 100 worker node upgrades, including VM migration and full node drains (we configured 5 in parallel), typically took roughly 10 hours to complete. This cluster configuration was following the general best practice of using a non-schedulable control plane, meaning no VMs or storage were running on the 3 control plane nodes, and storage was hyperconverged across 99 total worker nodes since OSDs are configured in sets of 3.
Cluster Configuration
The cluster under test consisted of the following baremetal hardware:
3 control plane nodes and 100 worker nodes
- 2x Intel Xeon Gold 6330
- 56 total cores, 112 threads
- 512GB RAM
- 25 Gb private network (shared across podnet, ODF replication, and VM migration)
- 1x 500GB SATA SSD (rhcos rootdisk)
- 1x 3TB NVMe (ODF disk)
In the testing described below, we used the following operator versions:
- OpenShift 4.22 (multiple zstream versions tested)
- OpenShift Virtualization 4.22
- OpenShift Data Foundation (ODF) 4.22
As described in our previous High Scale Virt Density blog, in this configuration we chose to configure a storage topology strategy that allowed us to safely disrupt multiple workers in parallel in order to speed up node drain times which is the final stage of any upgrade that includes worker reboots. As detailed in that write-up, ODF was configured with 3 storage topology “zones” across 99 nodes and the worker MachineConfigPool was set to maxUnavailable: 5 (note: this value should be carefully planned depending on the specific cluster environment by determining how many nodes can safely handle disruption in parallel)
We also want to call out a few improvements to default cluster settings since that previous High Scale blog. Starting in 4.21:
- autoSizingReserved: true is now default behavior
- the virtualization components are now configured with “highBurst” QPS and Burst RateLimit values by default
- failSwapOn: false is now set by default in the kubelet config (which allows a swap device to be configured)
Note that we do still recommend configuring nodeStatusMaxImages: -1 (or instead of unlimited, configure a higher value than the default of 50 images) to ensure better scheduler balancing based on node resources. Without this, VMs may be distributed very unevenly across nodes due to the scheduler preference for scheduling to nodes it knows have the desired virt-launcher image.
Upgrade Overview
We kicked off cluster upgrades from the command line -- after first validating that all worker nodes were Ready, ODF cluster status was healthy, and all 10K VMs were reachable. After each upgrade round was complete, we also reconfirmed ODF health and that all VMs were still reachable via ssh.
Example command:
oc adm upgrade --to=4.22.12This upgrade command will first download the new release image, then start upgrading the control plane pods. Users can watch ‘oc adm upgrade’ for progress during this phase of the upgrade. Eventually, once the control plane components have been fully updated, MachineConfigPool (MCP) updates will start in order to update all nodes. Note that with default settings, both the master and the worker MCP will start to roll out at the same time.
On average, our full control plane upgrades completed in roughly 1hr and 30min. This information can be queried by looking at the clusterversion object, for example:
oc get clusterversions.config.openshift.io -o yaml
[...]
completionTime: "2026-09-23T16:48:52Z"
image: quay.io/openshift-release-dev/ocp-release@sha256:<$image>
startedTime: "2026-09-23T15:26:14Z"
state: Completed
verified: true
version: 4.22.12After the control plane has been updated, including all master node reboots, oc adm upgrade will report the cluster has reached the new version, for example:
Cluster version is 4.22.12However the worker MCP will continue to roll out for a much longer duration in this case with 100 total nodes.
Node Draining and Pod Disruption Budgets
As the worker MCP rolls out, the MachineConfigOperator (MCO) will naturally start draining the first set of workers, in our case workers in ODF “zone0”, and throughout the update cycle MCO will continue to move on to draining the next set of workers to maintain the value of maxUnavailable: 5 as configured in our worker MCP. The ODF rook-ceph-operator will evaluate the storage protection domains to determine which Ceph Object Storage Daemon (OSD) PodDisruptionBudgets (PDBs) are required to protect data. This data protection process may cause some slight delays in transitioning to the next “zone” by delaying the drain of the OSD (and other critical) pods until the operator recognizes the storage cluster is in a safe state, allowing it to move on to the next zone PDB.
For instance, while our worker MCP was draining 5 nodes that were configured in ODF “zone2”, the operator log shows the following:
# oc logs -n openshift-storage rook-ceph-operator-55558f4789-q5gzp
2026-09-23 21:46:58.899773 I | disruption: OSD failure Domains : ["zone1" "zone2" "zone3"]
2026-09-23 21:46:58.899778 I | disruption: Draining Failure Domain: "zone2"
2026-09-23 21:46:58.899781 I | disruption: Set noout on draining Failure Domain: ""
2026-09-23 21:46:59.404061 I | disruption: reconciling osd pdb controller
2026-09-23 21:47:03.208986 I | disruption: osd "rook-ceph-osd-88" is down on node "e33-h14-000-r650" and a possible node drain is detected
2026-09-23 21:47:03.209146 I | disruption: osd "rook-ceph-osd-64" is down on node "e33-h17-000-r650" and a possible node drain is detected
2026-09-23 21:47:03.209286 I | disruption: osd "rook-ceph-osd-22" is down on node "e33-h11-000-r650" and a possible node drain is detected
2026-09-23 21:47:03.209404 I | disruption: osd "rook-ceph-osd-96" is down on node "e33-h13-000-r650" and a possible node drain is detected
2026-09-23 21:47:03.209533 I | disruption: osd "rook-ceph-osd-26" is down on node "e33-h15-000-r650" and a possible node drain is detected
2026-09-23 21:47:03.764575 I | disruption: OSD(s) [88 64 22 96 26] are down and PGs are not clean. PGs Status: "cluster is not fully clean. PGs: [{StateName:active+clean Count:4116} {StateName:active+undersized+degraded Count:136} {StateName:active+undersized Count:5} {StateName:active+undersized+degraded+remapped+backfill_wait Count:4} {StateName:active+undersized+degraded+remapped+backfilling Count:4}]"And the PDBs set in the storage namespace:
# oc get pdb -n openshift-storage
NAME MIN AVAILABLE MAX UNAVAILABLE ALLOWED DISRUPTIONS AGE
noobaa-db-pg-cluster-primary 1 N/A 0 22d
rook-ceph-mds-ocs-storagecluster-cephfilesystem 1 N/A 1 22d
rook-ceph-mgr-pdb N/A 1 1 22d
rook-ceph-mon-pdb N/A 1 1 22d
rook-ceph-osd-zone-zone1 N/A 0 0 131m
rook-ceph-osd-zone-zone3 N/A 0 0 5h31mThese logs essentially mean that zone2 is being disrupted by node/OSD drains, so the operator automatically “blocks” any OSD pod drains in the other 2 storage protection zones. As mentioned earlier, the operator will automatically adjust these PDBs once nodes in the “next” zone start draining, but only once it is safe to do so from a storage data perspective.
Example Logs & Troubleshooting
During the worker node update phase, we often check oc get node | grep Sched to capture the nodes that are currently being drained and/or rebooted, as well as watch oc get mcp to understand the total number of nodes that have been updated -- or in some cases, degraded meaning they have been trying to drain or update for longer than the default timeout value. We can also keep an eye on oc adm top node to understand the utilization load of each node.
One of the best log resources for further debugging during node drains comes from the machine-config-controller pod in the default openshift-machine-config-operator namespace. For example:
# oc logs -n openshift-machine-config-operator machine-config-controller-7c46c45557-hkpbr | tail -n 200Note that during normal VM draining and live migration, you might notice these types of log messages:
1 drain_controller.go:162] error when evicting pods/"virt-launcher-dirty-mem-vstorm-87d533-8969-82dkv" -n "vstorm-87d533-ns-45" (will retry after 5s): admission webhook "virt-launcher-eviction-interceptor.kubevirt.io" denied the request: Evacuation in progress: Eviction triggered evacuation of VMI "vstorm-87d533-ns-45/dirty-mem-vstorm-87d533-8969"However this is in fact normal and expected. What is happening in this case is the migration policy is using PDBs to control how many VMs are allowed to migrate at once (i.e. the migration limits configured in the HCO), and also signaling that the eviction controller is trying to evict a VM that already has a pending VMIM (VM Instance Migration) object.
When debugging why a node drain has become “degraded” after surpassing the default timeout, it is important to understand if there is an expected case where the PDB should be blocking it, for example:
E0730 14:44:08.375493 1 drain_controller.go:163] error when evicting pods/"rook-ceph-osd-10-7fd864cdbc-9gwvz" -n "openshift-storage" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget.Other scenarios where a particular pod is blocking the drain may require further investigation. For reference, drain “timeout” errors, which normally should not happen unless there are multiple heavy VMs migrating, look something like this:
1 drain_controller.go:401] node worker-1: drain exceeded timeout: 1h0m0s. Will continue to retry.
1 status.go:299] Degraded Machine: worker-1 and Degraded Reason: failed to drain node: worker-1 after 1 hour. Please see machine-config-controller logs for more information
1 drain_controller.go:182] node worker-1: Drain failed. Drain has been failing for more than 10 minutes. Waiting 5 minutes then retrying. Error message from drain: [error when evicting pods/"$podname" -n "$namespace": global timeout reached: 1m30sNote that determining whether migration is truly stuck requires judgment. For example, recurring drain timeouts of the same pod are more likely to indicate that something is failing to complete, while seeing different large VMs show up in these messages and eventually migrate is more likely to indicate load-related slow behavior rather than malfunction.
VM Migration
In this section we will describe the types of VM workload we deployed for the upgrade testing, as well as some troubleshooting tips for a case where a migration cannot converge. Keep in mind for this particular lab configuration, all traffic shares a single 25 Gbps network.
VM Workload
Multiple combinations of VM workload were used for this upgrade testing, utilizing some custom tooling that defines VMs with a specific memory dirty rate target: https://github.com/gqlo/vstorm
Note that this tooling provides some example workload definitions we use in our lab testing, however external users would need to provide their own VM image (for example using --dv-url) that provides gcc and cloud-init to work with this automation.
For the first upgrade round, a “light” dirty rate was configured for all VMs:
./vstorm --vms=10000 --namespaces=50 --ns-sequential-creation --basename=dirty-mem --cores=1 --memory=2Gi --cloudinit=workload/cloudinit-dirty-mem-pages.yaml --env DIRTY_RATE_FRACTION=0.25This created 10,000 total VMs across 50 namespaces. Each VM was assigned 2GiB of memory and configured at a 25% dirty rate, which controls the amount of memory that is modified per second based on the total guest memory size (which can trigger more pre-copy migration iterations: https://kernel-internals.org/virtualization/live-migration/). This was confirmed using the provided kubevirt-dirty-rate.sh script which utilizes the virsh qemu-monitor-command and calculates the rate using the dirty-bitmap mode. For example:
# ./kubevirt-dirty-rate.sh -n vstorm-87d533-ns-21 virt-launcher-dirty-mem-vstorm-87d533-4199-m5bkw
# namespace=vstorm-87d533-ns-21 vmi=dirty-mem pod=virt-launcher-dirty-mem-vstorm-87d533-4199-m5bkw domain=vstorm-87d533-ns-21_dirty-mem-vstorm-87d533-4199 calc_time=1s
12:45:40 | 395 MB/s
12:45:42 | 395 MB/s
12:45:44 | 395 MB/sIn this case the measurement shows VMs are driving up to ~3 Gbps of dirty memory. Note that this can be slightly lower than the target rate since the guest reserves some of its memory for kernel dump, etc.
For the first upgrade test the default migration limits were unchanged, which are configured as:
liveMigrationConfig:
allowAutoConverge: false
allowPostCopy: false
completionTimeoutPerGiB: 150
parallelMigrationsPerCluster: 5
parallelOutboundMigrationsPerNode: 2
progressTimeout: 150For this upgrade round, the general timing shows:
- The control plane / cluster version update completed in: 1 hour 22 min
- The full cluster upgrade including the 100 worker node updates and reboots completed in: roughly 9 hours 45 min following the control plane update.
Note: in this particular case the upgrade path was: 4.22.10 → 4.22.12
Throughout the worker node update phase, we continued to check migration metrics to ensure migrations were progressing in a stable manner (example dashboard used in our lab test), all was well and steady for the duration of the upgrade as shown in this example screenshot:

For another upgrade round, we wanted to add a bit heavier workload testing so we added 100 VMs with 15G of memory at 15% dirty rate (i.e. 2.25GB/s, 18Gbps) which will use a good portion of our 25Gbps network. Example command to start the VMs:
./vstorm --vms=100 --namespaces=1 --ns-sequential-creation --basename=heavy-dirty-mem --cores=8 --memory=15Gi --cloudinit=workload/cloudinit-dirty-mem-pages.yaml --env DIRTY_RATE_FRACTION=0.15Note: the warm up to reach a steady state dirty rate can take more time for very large VMs such as this.
And again we used the kubevirt-dirty-rate.sh script to confirm the actual dirty rate achieved:
# namespace=vstorm-4ff9a5-ns-1 vmi=heavy-dirty-mem pod=virt-launcher-heavy-dirty-mem-vstorm-4ff9a5-93-lvxjb domain=vstorm-4ff9a5-ns-1_heavy-dirty-mem-vstorm-4ff9a5-93 calc_time=1s
20:48:00 | 2201 MB/s
20:48:02 | 2201 MB/s
20:48:03 | 2200 MB/sIn this case the measurement shows VMs are driving up to ~18 Gbps of dirty memory.
Also we decided to test out the following migration limit change for this config.
First, we enabled AutoConverge as a backup option in case a migration needs to be “forced” by vcpu throttling. Note that another method that can be considered is enabling PostCopy in situations with heavy dirty rates. See the Tuning Guide for full guidance on configuring these values: https://access.redhat.com/articles/6994974#vm-migration-tuning
allowAutoConverge: trueAnd we also configured some optimized migration limits proposed in this PR: https://github.com/kubevirt/hyperconverged-cluster-operator/pull/4426
completionTimeoutPerGiB: 20
parallelOutboundMigrationsPerNode: 1Overall, even with some heavier VM migrations occurring during the upgrade and adjustments to the migration limits, the timing was still somewhat similar to the previous “light” load configuration. For this upgrade round, the general timing shows:
- The control plane / cluster version update completed in: 1 hour 21 min
- The full cluster upgrade including the 100 worker node updates and reboots completed in: roughly 11 hours 10 min
Note: in this particular case the upgrade path was: 4.22.15 → a development build.
Example Logs & Troubleshooting
One scenario that is useful for troubleshooting purposes is a case where VMs are running with such a heavy workload (as compared to the migration network speed) such that they are likely to never converge. In this section we’ll share some tips on recognizing this kind of behavior.
In this example debug case, 100 VMs were started with a dirty rate that far exceeded the physical network, for ex:
# ./kubevirt-dirty-rate.sh -n vstorm-c21c25-ns-1 virt-launcher-heavy-dirty-mem-vstorm-c21c25-96-xzglv
# namespace=vstorm-c21c25-ns-1 vmi=heavy-dirty-mem pod=virt-launcher-heavy-dirty-mem-vstorm-c21c25-96-xzglv domain=vstorm-c21c25-ns-1_heavy-dirty-mem-vstorm-c21c25-96 calc_time=1s
19:06:58 | 6735 MB/s
19:07:00 | 14748 MB/s
19:07:02 | 13223 MB/sWhich means the VMs would be driving dirty memory rates up to ~100Gbps which is much higher than our NIC link speed of 25Gbps in this configuration.
The first symptom in this case to watch for is “degraded” node drains, this can be seen in the oc get mcp output as well as in the machine-config-controller log, for example:
1 status.go:325] Degraded Machine: e45-h14-000-r650 and Degraded Reason: failed to drain node: e45-h14-000-r650 after 1 hour. Please see machine-config-controller Also we could see failed migration objects were starting to increase for this heavy VM type, example command:
# oc get vmim -A | grep FailedAnother sign was network saturation for the nodes trying to migrate these “too-heavy” VMs, for example ODF continued to alert about > 90% link saturation: ODFNodeNICBandwidthSaturation
And looking at node network metrics, it was clear that the migration was continuing to max out the link. Here is one example on the receive (destination) node side; the transmit (source) node will show similar behavior:

irate(node_network_receive_bytes_total{instance=\"$node\",job=\"$job\"}[5m])*8
irate(node_network_transmit_bytes_total{instance=\"$node\",job=\"$job\"}[5m])*8
In a case like this, very heavy VMs will often never converge with default live migration settings unless there are some short breaks in the workload, otherwise administrators would need to consider other migration tuning strategies (like PostCopy or AutoConverge for instance) due to the physical limitations of the migration network.
Control Plane Metric Examples
Finally, in this section we will display some metric dashboard examples during one of the cluster upgrade periods.
API Server
Most longer running API request durations were from PATCH operations on the kube-apiserver side and POST operations on the openshift-apiserver side, although there were not any very long durations of concern overall:

histogram_quantile(0.99, sum(resource_verb:apiserver_request_duration_seconds_bucket:rate:5m{apiserver="kube-apiserver"}) by (verb, le))

histogram_quantile(0.99, sum(resource_verb:apiserver_request_duration_seconds_bucket:rate:5m{apiserver="openshift-apiserver"}) by (verb, le))
etcd
All etcd metrics remained well below the recommended max values (etcd_disk_backend_commit_duration < 25ms and etcd_disk_wal_fsync_duration <10ms):

histogram_quantile(0.99, rate(etcd_disk_backend_commit_duration_seconds_bucket[5m]))

histogram_quantile(0.99, rate(etcd_disk_wal_fsync_duration_seconds_bucket[5m]))
Prometheus
Note that we did increase the promdb pod limits for this cluster size, as the defaults proved too small for this scale cluster; the full changes were configured to use:
resources:
requests:
cpu: "8"
memory: 96Gi
limits:
memory: 128GiJust to note the monitoring component growth during the upgrade phase:

(prometheus_tsdb_storage_blocks_bytes + prometheus_tsdb_wal_storage_size_bytes) / 1024 / 1024 / 1024

sum(container_memory_rss{container!="POD",container!="",pod!="",pod=~"prometheus-k8s-."}) by (pod) / 1024 / 1024 / 1024
Virtualization Components
Dashboard: https://github.com/kubevirt/monitoring/blob/main/dashboards/grafana/kubevirt-control-plane.json

Conclusion
Overall our high scale testing proved multiple successful cluster upgrades with VM workload, completing in under 12 hours total for our lab configuration. We will continue to focus on this type of testing for future releases, and continue pushing boundaries to find and fix new issues at scale!