Executive Summary
At ~100 nodes and 10K VMs, node drain time is shaped by two things: live migration under guest dirty load, and ODF behavior when the drain rolls across zones.
Placement Group (PG) tuning is high leverage for zone crossings. When drain moves into a new ODF zone, Ceph balancing work can stretch a handful of nodes well beyond the steady baseline. Speeding up that balancing (PG tuning) shortens those spikes and makes rolling maintenance and upgrades more predictable. For example, with 99 OSDs and 3 replicas, the recommended PG count is (OSDs × 100) / replicas = 3300. Round to the nearest power of 2 to get 4096.
ceph osd pool set ocs-storagecluster-cephblockpool pg_num 4096
ceph osd pool set ocs-storagecluster-cephblockpool pgp_num 4096Dirty rate matters, but less than one might expect—until traffic nears NIC saturation. With concurrency raised to 50/10 (cluster / per-node outbound)—well above the default 5/2 migration limits and VMs each allocated 1 GiB of RAM, fleets dirtying ~10% vs ~25% of that guest memory finished in about 4 and 5 hours respectively. Per-VM migration and queue times grow with dirty rate, yet node-level drain stays in a similar band as long as aggregate dirty traffic stays well below the physical NIC’s capacity.
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 software and operator versions:
- OpenShift 4.22
- OpenShift Virtualization 4.22
- OpenShift Data Foundation (ODF) 4.22
Worker MachineConfigPool was set to maxUnavailable: 5, so the MCO could cordon/drain up to five workers at a time during the rolling drain. That concurrency is what the ~4–5 hour full-fleet times reflect.
Workload and dirty-rate control
To keep memory pressure repeatable, each VM ran a custom C program (dirty-mem-pages) that dirties a controlled fraction of guest RAM at a steady rate. Guests were sized at 1 vCPU / 1 GiB; for these runs we used 10% and 25% dirty fractions.
Inside a 25% guest, usable RAM is less than the full 1 GiB request—kdump / crashkernel reserves memory for a crash dump, so free reports about 631 MiB total. The workload keys off that visible RAM:
$ free -h
total used free shared buff/cache available
Mem: 631Mi 427Mi 103Mi 6.0Mi 205Mi 204Mi
Swap: 2.0Gi 78Mi 1.9Gi$ journalctl -u dirty-mem-pages --no-pager | head
… dirty-mem-pages: phys_ram=631 MiB fraction=0.250 buffer=157 MiB dirty=157 MiB/s page=4096
… dirtied 157 MiB, elapsed … us, sleep … usSo “25% dirty” means rewriting about 157 MiB/s of anonymous memory (25% of the ~631 MiB the guest actually sees after the crashkernel reservation).
From the host, QEMU dirty-rate sampling on the virt-launcher matches that profile, as measured by kubevirt-dirty-rate.sh:
# kubevirt-dirty-rate.sh … calc_time=1s
21:10:35 | 160 MB/s
21:10:37 | 172 MB/s
21:11:02 | 160 MB/s
…Guest target (~157 MiB/s) and host-measured dirty rate (~160 MB/s) line up. That rate is intentional and controlled. The live-migration limits were also raised well above defaults—to 50 parallel migrations per cluster and 10 outbound per node—specifically to probe scale limits. Even at those elevated settings, and with a shared 25 Gbps link, the traffic stays well below NIC saturation for the drain runs that follow.
If the combined outbound dirty rate exceeds NIC bandwidth, consider switching the migration strategy to auto-converge. Auto-converge throttles the guest CPU to lower its memory dirty rate, so the migration transfer can finish copying remaining dirty pages before new ones accumulate. In those scenarios we have successfully migrated VMs that would otherwise fail to complete.
Per-node drain time through a zone-ordered rollout

At 10% guest dirty memory, a full 100-worker drain at 10K VM scale shows a clear split between steady-state drains and zone-crossing spikes. Most nodes finish in a fairly tight band—roughly on the order of ~7–15 minutes. That baseline is the normal cost of live-migrating VMs off the node, completing eviction and rebooting the node itself under this concurrency and guest size. The outliers are concentrated at ODF zone boundaries. Early in zone2, several nodes jump well above the baseline (toward roughly ~30–45 minutes); zone3 shows a smaller spike when the drain first enters that zone. After Ceph balancing settles, drain times fall back into the same band as zone1.
Ceph operator logs at a zone crossing
The spikes at zone boundaries are not only a chart artifact. ODF’s disruption controller records the same handoff. When zone1 finishes and the first zone2 OSD goes down, the operator log shows PGs returning to active+clean, the default OSD PDB restored, then Draining Failure Domain: "zone2" with temporary blocking PDBs on the other zones:
disruption: OSDs are up and PGs are clean. PG status: "all PGs in cluster are clean"
disruption: all PGs are active+clean. Restoring default OSD pdb settings
…
disruption: osd "rook-ceph-osd-46" is down … possible node drain is detected
disruption: Draining Failure Domain: "zone2"
disruption: creating temporary blocking pdb "rook-ceph-osd-zone-zone1" with maxUnavailable=0 …
disruption: creating temporary blocking pdb "rook-ceph-osd-zone-zone3" with maxUnavailable=0 …
That is the storage-side view of a zone cross: one failure domain drains at a time; the others are blocked until balancing settles—which is why the next few node drains take longer.

At 25% guest dirty memory, the shape of the plot stays the same: a steady per-node band, then longer drains when the rollout enters a new ODF zone. Most nodes still land in roughly the same ~7–15 minute range. The expensive outliers again sit at the start of zone2 (peaks approaching roughly ~30 minutes), then times settle; zone3 stays closer to the baseline band without the same sharp climb seen at 10%. So raising dirty memory from 10% to 25% does not rewrite the story of this chart. It may nudge individual migrations and queues (covered in the live-migration plots), but node-level drain duration is still dominated by zone-crossing / Ceph balancing, not by the step from 10% to 25% dirty rate.
Live migration duration under evacuation

During node drain, each VM must live-migrate off the worker. This histogram shows the distribution of per-VM migration duration across the 10K VM evacuation, comparing 0%, 10%, and 25% guest dirty memory (same 1 vCPU / 1 GiB guests and controlled dirty-mem-pages workload). Note the log-scale y-axis: bins holding only a few VMs are still visible, so read bar height as order-of-magnitude, not raw count.
For all three dirty rates, the overwhelming majority of VMs finish fast — roughly 99% of 10,000 complete within the first two bins (≤40 s), and the 20 s and 40 s bars dominate regardless of dirty rate. Dirty rate does not change where the bulk of the fleet lands; it changes the tail.
0% dirty (yellow): essentially no meaningful tail. A few stragglers scatter out to ~180–200 s (tens of VMs at most), and nothing beyond ~200 s.
10% dirty (red): nearly identical fast bulk, with a slightly populated tail through ~80–200 s — still only a handful of VMs per bin, and it ends by ~200 s.
25% dirty (blue): same fast bulk, but a distinct extended tail that only this rate produces — small counts (~0.5%) in the 260 s, 280 s, 300 s, and 320 s bins. At this dirty rate, a minority of migrations spend much longer chasing dirty pages before converging.
Dirty rate clearly shapes the tail of individual migration duration, not the median. That is expected — higher dirty rate means more iterative memory copy, which lengthens the slowest migrations. Crucially, this is a small-count effect: even at 25% dirty, only a few dozen VMs out of 10K land past ~200 s. In our runs it did not turn into a large jump in full-fleet node-drain wall-clock between 10% and 25%, because concurrency is capped (50/10 cluster/node limits) and the shared 25 Gb link was not saturated. The long poles on the zone-drain charts remain ODF zone crossings; this chart is where the dirty rate shows up most directly — in the length of the straggler tail.
Live migration queuing under evacuation

Migration duration is only half the story. With a cluster/node limit of 50/10, only a bounded number of live migrations run at once; everything else waits in queue. This histogram shows the distribution of queuing time across the same 10K VM evacuation at 0%, 10%, and 25% dirty memory. Same log-scale y-axis caveat as before: bins with only a few VMs stay visible, so read height as order-of-magnitude, not raw count. For the bulk of the fleet, all three dirty rates queue almost identically — the 50–250 s bins dominate and the blue/red/yellow bars track each other closely there. Most VMs wait on the order of ~50–250 s regardless of dirty rate, because slots free up quickly when migrations finish fast.
The difference is in the tail:
0% and 10% dirty effectively end by ~300 s — only a handful of VMs (single digits) spill past it, and nothing meaningful beyond ~350 s.
25% dirty is the only rate with a sustained long tail. Small counts (~1%) stretch from ~300 s out to ~800 s. This is a congestion effect, not a per-VM one: at 25% dirty, more migrations run long (previous plot), so concurrency slots free up more slowly under the 50/10 caps. VMs further back in the queue — on nodes where slots are churning slowly — wait longer. It isn't that these particular VMs migrated slowly; it's that the system drained slower around them.
So the dirty rate hits evacuation in two places — how long each migration runs (previous plot) and how long a minority of VMs sit waiting for a slot (this plot). Both effects live in the tail, not the median, which is why 25% can feel heavier per VM even though full-fleet node-drain wall-clock only moved modestly (about 4 vs 5 hours in our runs): the concurrency caps absorb most of the cost, while ODF zone crossings still dominate the worst per-node drain times.
Conclusion
Node drain at this scale works well. On a 100-worker cluster hosting 10K running VMs—with controlled guest dirty load, shared 25 Gb networking, and ODF on the same nodes—we completed full rolling drains in about 4–5 hours. Most workers emptied in a predictable window; live migration stayed manageable under 50/10 concurrency as long as the dirty rate stayed well below NIC saturation.
What we learned is not that drain falls apart at scale, but where to look when it slows. Dirty rate shows up clearly in per-VM migration duration and queue time. The long poles on per-node drain charts are mainly ODF zone crossings and Ceph balancing—and those are improvable with PG tuning, not a reason to avoid drain-heavy operations.
For day-2 operations—node maintenance, Machine Config rollouts, and cluster upgrades—the takeaway is practical: OpenShift Virtualization + ODF fleets at 10K VMs can drain and roll forward reliably. Plan for steady per-node cost, budget extra at zone boundaries, ensure migration limits keep dirty rate traffic below the link ceiling, and treat storage disruption tuning as part of the drain path.
Acknowledgement
This is a collaborative effort within the OpenShift Virtualization Performance and Scale team, We address storage, network performance and scalability challenges, conducting in-depth performance analysis to ensure workloads operate efficiently at scale across the entire infrastructure stack. David Wilson Abhishek Bose Elvir Kuric Shekhar Berry
We extend our gratitude to Will Foster, Kambiz Aghaiepour, and the entire Scale Lab team for providing the bare metal machines and their invaluable assistance with hardware troubleshooting. Their collective efforts have been essential to this work.