The Magic of Proxmox VE 9.2's Dynamic Load Balancer
How Proxmox VE 9.2's Cluster Resource Scheduler (CRS) eliminates the empty recovered node problem in High Availability clusters, plus live-migration network isolation and VM pinning rules.
If you have operated a production Proxmox VE High Availability (HA) cluster for any length of time, you know the exact morning-after scenario following an overnight hardware reboot. At 3:10 AM, a host panics on a faulty NVMe controller or reboots after an emergency kernel update. Proxmox HA responds as designed: pve-ha-crm fences or drains the offline node and boots its 16 KVM virtual machines across the surviving three hosts. Twenty minutes later, the repaired fourth node comes back online and rejoins Corosync quorum, and then sits completely idle at 1% CPU while the other three servers run hot at 86% RAM utilization until an administrator logs in to manually live-migrate VMs back one by one.
With Proxmox VE 9.2, that post-recovery imbalance finally gets an automated answer. The expanded Dynamic Load Balancer inside the Cluster Resource Scheduler (CRS) monitors live CPU and memory pressure across active quorum members and automatically rebalances HA-managed guests via online migration when cluster utilization skews too far apart.
How Proxmox VE 9.2 Evolves the Cluster Resource Scheduler
To appreciate why this matters operationally, look at how CRS worked prior to 9.2. Earlier Proxmox VE releases introduced static resource scoring (ha-rebalance-on-start): when a stopped HA guest needed to start or recover from a node failure, pve-ha-crm calculated the least-loaded target node at that single point in time. Once a VM was running on pve-node-03, CRS never reconsidered its placement, leaving recovered or newly added hosts empty until the next maintenance cycle.
Proxmox VE 9.2 upgrades pve-ha-crm from a startup-only placer into a continuous dynamic scheduler:
- Live CPU and memory pressure telemetry: Instead of scoring static vCPU counts on paper alone, CRS evaluates real host CPU load and committed RAM utilization broadcast through
pmxcfsacross online cluster nodes. - Hysteresis and migration cost awareness: Live-migrating a 16 GB guest consumes network bandwidth and CPU cycles. CRS applies damping thresholds so minor five-minute traffic bursts do not trigger endless VM ping-pong between two evenly matched servers; a live migration only fires when moving the guest measurably reduces cluster-wide variance.
- Non-disruptive QEMU live migration: Eligible HA virtual machines move in the background over encrypted migration sockets while preserving active TCP connections and application state.
Configuring CRS via Web GUI and /etc/pve/datacenter.cfg
By design, Proxmox VE 9.2 only rebalances workloads that are explicitly registered in the High Availability stack and backed by shared storage (such as Ceph RBD, shared NFS/iSCSI LVM, or synchronized ZFS replication targets) accessible on the destination node. Standalone local-disk VMs are never moved unexpectedly.
1. Enable HA Resources and Dynamic CRS in the GUI
- Open the Proxmox Web GUI and go to Datacenter -> HA -> Resources.
- Click Add to register the production VMs and containers that sit on shared storage and support live migration.
- Navigate to Datacenter -> Options and double-click Cluster Resource Scheduling.
- Enable dynamic HA load balancing and verify your dedicated migration subnet under Migration Settings.
Under the hood, Proxmox writes cluster-wide scheduling and migration parameters to /etc/pve/datacenter.cfg:
# /etc/pve/datacenter.cfg
crs: ha=dynamic,ha-rebalance-on-start=1
migration: type=secure,network=10.20.40.0/24
bwlimit: migrate=250000
From an SSH session on any cluster member, use ha-manager and journalctl to inspect live CRS state and audit rebalancing decisions:
# View quorum health, active CRM master node, and HA service placement
ha-manager status
# Inspect configured HA resources, states, and affinity rules
ha-manager config
# Follow live CRS imbalance calculations and migration triggers
journalctl -u pve-ha-crm -f
Isolate the Live-Migration Network from Corosync and Ceph
Turning on unattended live migrations without network segmentation is a classic production trap. Transferring dirty RAM pages for several busy KVM guests easily saturates a 1 GbE or shared 10 GbE link. If bulk QEMU migration traffic competes on the same NIC or VLAN as Corosync (kronosnet UDP heartbeats) or Ceph OSD replication traffic, packet queuing pushes Corosync latency past its token timeout, causing healthy hosts to lose quorum and self-fence via watchdog reset.
I broke down how quickly HA automation turns catastrophic on congested links in the risks of High Availability automation during network instability. Before enabling dynamic CRS in production, enforce three network guardrails:
- Dedicated Corosync rings: Keep Corosync Ring 0 on a physically separate, low-latency network link, backed by a redundant Ring 1 path so bulk storage or VM transfers can never starve cluster heartbeats.
- Isolated Migration VLAN (
network=): Routemigration: type=secure,network=10.20.40.0/24over a dedicated 10 GbE or 25 GbE VLAN separate from both Corosync and public VM bridge traffic (vmbr0). - Sensible
bwlimitceilings: If live migrations share bonded 10 GbE trunks with Ceph storage, capbwlimit: migrate=in/etc/pve/datacenter.cfgso background rebalancing never starves guest disk I/O or triggers high iowait and CPU steal spikes.
VM Affinity Rules and Pinning Heavy Databases
Dynamic load balancing works brilliantly for web servers, reverse proxies, mail relays, application workers, and general cPanel/VPS guests, yet certain workloads need tighter placement boundaries. A write-intensive PostgreSQL or MySQL VM dirtying hundreds of megabytes of RAM per second can take much longer to converge during QEMU memory copy, or risk a brief pause at final switchover. Likewise, putting both nodes of a replicated database cluster onto the same physical hypervisor defeats high availability.
Combine Dynamic CRS with Proxmox Node Affinity and Resource Affinity rules based on workload profile:
| Workload Category | Dynamic CRS Suitability | Recommended Proxmox HA Strategy |
|---|---|---|
| Stateless Web, App & Proxy VMs | Ideal | Add to HA with unrestricted dynamic CRS across all cluster hosts |
| Primary + Standby DB Guests | Good with anti-affinity | Configure negative resource affinity so both VMs never share one host |
| Write-Heavy 64 GB+ OLTP Databases | Selective / Caution | Pin preferred host via node affinity; migrate during maintenance windows |
| Local PCIe / GPU Passthrough VMs | Do not enable | Keep out of dynamic HA; hardware passthrough binds to local host IOMMU |
Step-by-Step Maintenance-Mode Testing
Always validate evacuation and automatic rebalancing during a planned window before relying on it at 3:00 AM. You can test the complete Proxmox VE 9.2 dynamic rebalance cycle cleanly from the CLI without dropping client traffic:
# 1. Verify Corosync quorum and shared storage availability across all nodes
pvecm status
pvesm status
# 2. Place pve-node-02 into Maintenance Mode to trigger graceful live evacuation
ha-manager crm-command node-maintenance enable pve-node-02
# 3. Monitor live migrations draining pve-node-02 with zero guest downtime
watch -n 2 ha-manager status
# 4. Patch or reboot pve-node-02, then clear Maintenance Mode once healthy
ha-manager crm-command node-maintenance disable pve-node-02
# 5. Confirm pve-ha-crm detects the idle recovered host and rebalances VMs back
journalctl -u pve-ha-crm --since "10 minutes ago"
In older Proxmox releases, clearing maintenance mode in step 4 left pve-node-02 completely empty until someone manually migrated workloads back across the cluster. In Proxmox VE 9.2, pve-ha-crm spots the utilization gap on its next scheduling pass and live-migrates HA guests onto the freshly recovered node hands-free and with zero downtime. Paired with an isolated migration VLAN and smart database affinity rules, it makes Proxmox HA noticeably calmer to run at scale.