Skip to main content

DRS (Distributed Resource Scheduler)

Enterprise Feature

DRS is available exclusively with an Enterprise license. The required feature flag is drs.

The Distributed Resource Scheduler (DRS) provides automatic VM load balancing across Proxmox cluster nodes. Inspired by VMware DRS, it continuously monitors resource utilization and generates migration recommendations to keep your clusters balanced and healthy.

Overview​

DRS analyzes CPU, memory, and storage usage across all nodes in a cluster, identifies imbalances, and recommends VM migrations to distribute workloads evenly. It supports three operating modes:

ModeBehavior
ManualDRS generates recommendations that an administrator must review and execute manually
PartialRecommendations above a configurable priority threshold are executed automatically; the rest require manual approval
AutomaticAll recommendations are executed automatically without manual intervention

Interface Tabs​

Flowchart of a DRS recommendation. The evaluation cycle, every 5 minutes or on Evaluate, produces recommendations with a priority from Low to Critical, and the mode of the cluster, its own or the global one, decides what happens next. Manual: the recommendation waits in Recommendations for an operator to Approve, Reject or Execute migration. Automatic: it runs automatically at the next rebalance, every hour by default, and affinity fixes run right away. Partial: High and Critical recommendations run automatically, Low and Medium ones wait for an operator. Every migration then passes the same checks: a cluster under a rolling update is skipped, Max concurrent migrations per cluster (2), Max target inflow per cycle when set, a per-guest cooldown of 5 minutes, a recommendation is stale when the guest has moved or was not reconfirmed for 30 minutes, and it is refused for a local disk, a drained node, an affinity rule or a target that lacks the guest's network or storage. A recommendation that passes becomes a Proxmox migration, whose progress shows in DRS and the Task Center; one that does not is not migrated and shows its reason.Flowchart of a DRS recommendation. The evaluation cycle, every 5 minutes or on Evaluate, produces recommendations with a priority from Low to Critical, and the mode of the cluster, its own or the global one, decides what happens next. Manual: the recommendation waits in Recommendations for an operator to Approve, Reject or Execute migration. Automatic: it runs automatically at the next rebalance, every hour by default, and affinity fixes run right away. Partial: High and Critical recommendations run automatically, Low and Medium ones wait for an operator. Every migration then passes the same checks: a cluster under a rolling update is skipped, Max concurrent migrations per cluster (2), Max target inflow per cycle when set, a per-guest cooldown of 5 minutes, a recommendation is stale when the guest has moved or was not reconfirmed for 30 minutes, and it is refused for a local disk, a drained node, an affinity rule or a target that lacks the guest's network or storage. A recommendation that passes becomes a Proxmox migration, whose progress shows in DRS and the Task Center; one that does not is not migrated and shows its reason.
In Manual mode you execute every move yourself; Partial executes only High and Critical recommendations; Automatic executes them all at the next rebalance. Every migration passes the same limits first.

The DRS page is organized into five tabs, in a bar at the top of the page: Load Overview, Recommendations, History, Affinity, and Configuration. The DRS health card sits inside Load Overview rather than above the bar.

Load Overview​

The Load Overview tab includes connected Proxmox clusters with more than one node. A standalone connection has no migration destination, so when no eligible multi-node cluster is connected the tab shows No DRS clusters. Each cluster is displayed as an expandable card showing:

DRS Load Overview with the DRS health card (health score, CPU and RAM per node chart for both clusters, evaluate button) and the PVE-PROD card expanded, showing its Storage chip, the role legend and aligned CPU and RAM bars per node with pve2 as Source and pve3 and pve1 as Targets, above the collapsed PVE-DR card reading To optimize with its memory spread
Expand a cluster card to see each node's CPU and RAM and its role: a Source has load to shed, a Target can receive guests.
  • Cluster name and Proxmox VE version
  • Node count and running VM count
  • Average CPU and memory utilization displayed as circular gauges
  • Health score -- a computed score reflecting overall cluster balance (Balanced, To Optimize, or Unbalanced)
  • Memory spread -- the percentage gap between the most-loaded and least-loaded node
  • A constraint chip when the cluster cannot balance freely, reading SDN, Storage or SDN + storage, see Placement Constraints
Bar chart of the memory use of four nodes as Load Overview shows it, with the Memory High threshold at 85 %, the Memory Low threshold at 25 % and the average of 67 % with a band of 5 points on each side. pve1 at 88 % is a Source, pve2 at 64 % sits inside the band and is Neutral, pve3 at 50 % is a Target, and pve4 is in Maintenance, with no role and no moves. Beside it, the order in which the engine looks for moves on each evaluation: first affinity violations, always; then, with Active homogenization on, a spread over Max load spread (10 %) is balanced inside each balancing domain; if that proposes no move, a node over CPU High (80 %) or Memory High (85 %) sheds guests to nodes under the Low thresholds (20 %, 25 %); and only when no node is over a High threshold, a standard deviation over the Imbalance threshold (5) moves load from nodes above the average to nodes below it. Roles read memory only.Bar chart of the memory use of four nodes as Load Overview shows it, with the Memory High threshold at 85 %, the Memory Low threshold at 25 % and the average of 67 % with a band of 5 points on each side. pve1 at 88 % is a Source, pve2 at 64 % sits inside the band and is Neutral, pve3 at 50 % is a Target, and pve4 is in Maintenance, with no role and no moves. Beside it, the order in which the engine looks for moves on each evaluation: first affinity violations, always; then, with Active homogenization on, a spread over Max load spread (10 %) is balanced inside each balancing domain; if that proposes no move, a node over CPU High (80 %) or Memory High (85 %) sheds guests to nodes under the Low thresholds (20 %, 25 %); and only when no node is over a High threshold, a standard deviation over the Imbalance threshold (5) moves load from nodes above the average to nodes below it. Roles read memory only.
A node more than 5 points above the average memory is a Source, more than 5 points below a Target. The trigger thresholds decide when the engine actually proposes a move.

Expanding a cluster card reveals the per-node breakdown. Each node displays:

  • CPU and memory usage as horizontal progress bars
  • Running VM count vs. total VM count
  • A color-coded role indicator:
RoleMeaning
Source (red)Node is above average utilization and should offload VMs
Target (green)Node is below average utilization and can receive VMs
NeutralNode is within the acceptable range of the cluster average
Maintenance (amber)Node is in maintenance mode and is excluded from DRS placement, as a source and as a target
DRS Load Overview with a health card, Node A/B/C illustration and No DRS clusters message
Connect a multi-node Proxmox cluster before evaluating or applying DRS placement recommendations.

Recommendations​

The Recommendations tab lists all pending migration recommendations. Each recommendation shows:

  • The VM or container name and its ID
  • The migration path: source node to target node
  • A priority level: Low, Medium, High, or Critical
  • An estimated improvement score indicating how much the migration will improve cluster balance
Pending recommendations card on PVE-PROD with four migrations, one per priority: cache-01 from pve3 to pve1 for the node affinity rule monitoring-on-pve1 (Critical), acme-db-01 from pve2 to pve3 for high memory usage (High), and Ubuntu and Debian13 from pve2 to pve3 for load balancing (Medium and Low), each with its confirmation count and estimated improvement, and the Clear all button
Each recommendation names the guest, its path between nodes, the reason, its priority and the expected improvement.

Clicking a recommendation opens a detail drawer where you can:

  1. Review the full migration details (VM info, reason, priority, estimated improvement, creation date)
  2. View storage validation results -- DRS checks whether the VM has local or shared disks and whether the target node has enough storage space
  3. Approve, Reject, or Execute the migration
Recommended migration drawer for the container cache-01 from pve3 to pve1: Local storage detected with its 2 GB root disk on ZFS-Pool and an estimated duration under a minute, the target ZFS-Pool on pve1 going from 93.1 to 95.2 percent with a storage critical warning, the cluster memory balance chart, Critical priority, estimated improvement, the node affinity reason, status, creation date and the Execute migration, Approve and Reject buttons
Before you execute, the drawer shows what has to be copied and how full the target storage will be afterwards.

When a migration is executed, a real-time progress bar tracks its status including percentage complete and current operation message. DRS polls the Proxmox task every 2 seconds until the migration completes or fails. The same percentage is shown on the DRS row of the Task Center and of the tasks bar.

Migrations in progress card with Debian13 moving from pve2 to pve3, a progress bar at 64 percent and the current step Live memory migration
A running migration shows its progress and the step it is at until the Proxmox task ends.
tip

If a VM has been moved since the recommendation was created, DRS automatically marks it as stale and prevents execution. The recommendations list is revalidated each time you open a detail drawer.

Placement Constraints​

DRS only proposes a move to a node that can actually run the guest. A guest's real choice of nodes is the intersection of what its networks and its storages reach: each netN bridge resolved to its SDN VNet and that VNet's zone, and each disk resolved to its storage. Guests that share the same set of eligible nodes form a balancing domain, and DRS balances inside each domain, against that domain's own average and its own spread, instead of against a cluster-wide average that no guest can actually reach.

Diagram of a four-node cluster and its balancing domains. The nodes pve1, pve2, pve3 and pve4 use 82 %, 74 %, 58 % and 22 % of their memory. Domain 1, the portable guests on the storage ceph-rbd, spans pve1 to pve4, with an average of 59 % and a spread of 60 %. Domain 2, the guests on app-net in the SDN zone app, spans pve1 to pve3, with an average of 71 % and a spread of 24 %. Domain 3, the guests with a disk on nfs-archive, is pve4 only and has nowhere to move. DRS proposes a portable guest from pve1 to pve4 and an app-net guest from pve1 to pve3, each inside its own domain, and never proposes an app-net guest to pve4, which has no app-net. Homogenization balances each domain against its own average.Diagram of a four-node cluster and its balancing domains. The nodes pve1, pve2, pve3 and pve4 use 82 %, 74 %, 58 % and 22 % of their memory. Domain 1, the portable guests on the storage ceph-rbd, spans pve1 to pve4, with an average of 59 % and a spread of 60 %. Domain 2, the guests on app-net in the SDN zone app, spans pve1 to pve3, with an average of 71 % and a spread of 24 %. Domain 3, the guests with a disk on nfs-archive, is pve4 only and has nowhere to move. DRS proposes a portable guest from pve1 to pve4 and an app-net guest from pve1 to pve3, each inside its own domain, and never proposes an app-net guest to pve4, which has no app-net. Homogenization balances each domain against its own average.
Guests that can reach the same nodes form a balancing domain, and homogenization balances each domain against its own average. A guest is never sent to a node that lacks its network or storage.

On a cluster with no restriction there is exactly one domain covering every eligible node, and its average and spread are the cluster's own, so nothing changes.

When a cluster is restricted, the Recommendations tab carries a Placement constraints card: "These clusters cannot balance freely: a bridge, an SDN VNet or a storage a guest needs does not reach every node." It holds two lists:

  • Balancing domains, each with the number of guests it holds and its spread. A domain reduced to a single node reads nowhere to move rather than a spread of zero, which would look like perfect balance.
  • Guests that cannot be moved, each with the node it sits on and what blocks it, typically "no other node carries this guest's network or storage".

The card renders nothing at all on an unrestricted cluster, which is the common case. The cluster header chip names the cause, SDN, Storage or SDN + storage, read from what the engine reports rather than guessed, and its tooltip explains the consequence: the memory spread and the health score are still computed over every node, so on such a cluster they cannot come down to zero.

PVE-PROD cluster header with the Storage constraint chip hovered and its tooltip: 2 balancing domains on this cluster, 4 guests can only move within part of the nodes, load is balanced inside each domain and the guest placement card names them
Hover the constraint chip to see how many balancing domains the cluster has and how many guests are limited.

When nothing is left to balance but guests are pinned, the page says so, "Nothing to balance right now. Some guests cannot be moved at all, see the placement constraints above.", instead of declaring every cluster balanced.

Guest placement card listing the balancing domains of PVE-DR and PVE-PROD, a single-node domain on pve1 reading nowhere to move, guests with fewer destinations limited by the LVM-Thick storage, guests left out of automatic balancing because of local disks, and the Nothing to balance right now message
Guest placement shows how far each guest can move; a guest with nowhere to move is the only one that needs attention.
Why this is read from the networks and not from Proxmox

Proxmox's own migration precheck reports every node as allowed for a guest on a restricted-zone VNet, and a cross-zone move then fails in its second phase with bridge '...' does not exist, after the target guest has already been started. The precheck does report unavailable storages correctly, and that half is still cross-checked before a migration fires.

The rule blocks only on positive evidence, so missing or unreadable data never freezes DRS: a zone with no node list, an unrestricted storage, a VNet whose zone did not load, a bridge absent from the source node too, and a node whose interfaces could not be read are all left alone.

The filter is applied on every path that picks a target: reactive and proactive balancing, homogenization, affinity rule enforcement, maintenance evacuation, the rolling update placer, and a last check immediately before a migration is fired. A migration declined for one of those reasons is reported as a decision with its reason, not as a server error.

Guests named in the constraints card follow your scope

The pinned guests and the balancing domains are the first DRS figures that name guests, so they go through the same infrastructure scope as everything else, and a domain is shown only when every node it names is visible to you. A partially visible domain would leak the rest.

Storage Validation​

Before executing a migration, DRS performs a pre-flight storage check:

  • Shared storage: If all VM disks reside on shared storage (Ceph, NFS, etc.), the migration is safe and fast -- no data copy is required.
  • Local storage: If the VM has local disks, DRS displays:
    • A list of local disks with their sizes
    • The total data to transfer and an estimated transfer duration
    • A breakdown of the target node's storage: current usage, projected usage after migration, and a warning level (OK, Warning, Critical, or Full)
warning

Migrations involving local storage take significantly longer and temporarily consume additional storage space on the target node. Always verify that sufficient space is available before proceeding.

History​

The History tab is the record of what DRS actually did, and why. It opens on five figures over the filtered set, Migrations, Completed, Failed, In progress and Average duration, then lists the migrations newest first, grouped by day.

Each row carries the guest and the node it moved between, the reason DRS decided it, how long it took and how it ended. A migration carried out to empty a node for maintenance is marked with an Evacuation chip.

Three filters narrow the list: the cluster, the status (Completed, Failed, In progress), and a search on a guest's name or VMID.

DRS History tab with the Migrations, Completed, Failed and In progress figures and the average duration, the cluster, status and search filters, and migrations grouped under two days: one in progress, completed moves for high memory usage, an anti-affinity rule, homogenization from 78 to 61 percent and a node evacuation marked with the Evacuation chip, a failed move with its error, and an older row reading Reason not recorded
History lists what DRS moved, why, how long it took and how it ended, grouped by day.

The reasons DRS records are its own vocabulary, not free text:

ReasonWhen DRS uses it
High CPU load on source nodeThe source node passed the CPU high threshold
High memory usage on source nodeThe source node passed the memory high threshold
Homogenization: reduce load from X% to Y%The move brings the source back towards the average of its balancing domain
Load balancing optimizationThe generic balancing decision, reactive or proactive
Node evacuation for maintenanceThe node is being emptied, and the row carries the Evacuation chip
Affinity rule 'name'An affinity, anti-affinity or node affinity rule asked for the move

The reason is copied onto the migration row when the migration starts, because the recommendation it came from is pruned long before the row. An older row that never received it shows Reason not recorded.

Migrations interrupted by an orchestrator restart​

A migration that the orchestrator was following when its process stopped (restart, upgrade, out-of-memory kill, or the orchestrator evacuating its own node) is not left at Running. At boot, 20 seconds after start, and then every five minutes, the orchestrator reconciles every migration still marked running against the Proxmox task it recorded, or against where the guest now sits when the task is gone: a finished move is marked completed, a failed one failed, and a move still in flight is re-adopted and followed with the time budget it has left. A row with no evidence either way for an hour is written off, and rows belonging to a connection that has been removed are closed. The sweep runs whether or not DRS is enabled, and it sends no burst of late "migration completed" notifications.

In a high availability deployment only the leader orchestrator runs this sweep, see DRS in a high availability deployment.

Affinity​

Affinity rules let you control VM placement within a cluster. When multiple clusters are connected, a cluster selector at the top lets you choose which cluster's rules to manage. Three rule types are supported:

Affinity tab on PVE-PROD with three rules: web-app-together (Affinity, web-01 and app-01), web-separate (Anti-affinity, Required, web-01 and web-02) and monitoring-on-pve1 (Node pinning, monitor-01 and cache-01 on pve1), each with its source and actions
Each rule shows its type, the guests it covers, the nodes it pins them to and whether it is required.
Rule TypeDescription
AffinityKeep selected VMs together on the same node
Anti-affinityKeep selected VMs on different nodes to avoid single points of failure
Node affinityPin specific VMs to designated nodes

Each rule can be configured as:

  • Required (hard constraint) -- DRS will never generate a recommendation that violates this rule
  • Preferred (soft constraint) -- DRS will respect this rule when possible but may override it under heavy load

Rules can also be populated from Proxmox tags or resource pools, making it easy to define placement policies for groups of VMs without listing individual VMIDs.

Add rule dialog with the name web-separate, the Anti-affinity type, web-01 and web-02 as affected guests, and the Rule enabled and Rule required switches on
Name the rule, pick its type and at least two guests, then decide whether it is required.
tip

Use anti-affinity rules for redundant services (e.g., two database replicas) to ensure they never land on the same hypervisor.

Configuration​

The Configuration tab exposes all DRS tuning parameters:

DRS Configuration, General settings section: DRS enabled switch, Operation mode Manual, active clusters, per-cluster mode for PVE-PROD and PVE-DR, excluded nodes per cluster and the guest types to balance
General settings hold the switch, the operation mode, its per-cluster overrides, the excluded nodes and the guest types.

General Settings

  • Enable/Disable DRS -- master toggle for the scheduler
  • Operating mode -- Manual, Partial, or Automatic
  • Balancing method -- Optimize for Memory, CPU, or Disk
  • Balancing mode -- Based on actual usage (used), allocated resources (assigned), or pressure stall information (psi, requires PVE 9+)
  • Guest types -- Balance VMs, containers, or both

Thresholds

  • CPU high/low thresholds
  • Memory high/low thresholds
  • Storage high threshold
  • Imbalance threshold (minimum spread before DRS intervenes)
  • Maximum load spread for homogenization
DRS Configuration, Trigger thresholds section with the CPU and memory high and low thresholds, the imbalance threshold, the Active homogenization switch and the maximum load spread
Trigger thresholds decide when a node becomes a source or a target, and when DRS starts to act.

Weights

  • CPU weight, memory weight, and storage weight to control relative importance in the balancing score
DRS Configuration, Advanced options section with the migration limits (max concurrent migrations per cluster, max target inflow per cycle), the migration behavior (cooldown, max pending recommendations) and the CPU, memory and storage weights
Advanced options cap how many migrations run at once and how often, and weigh CPU, memory and storage in the balance.
How a guest's memory is weighed

Proxmox VE 9 reports two memory figures per guest: what the guest believes it is using, which is what the balloon driver reports as soon as it is running, and what the guest's cgroup really holds on the node. DRS weighs a guest by the second. Weighing by the first meant a Windows guest with VirtIO drivers counted for a little over a gigabyte while migrating it would have freed eight, and it meant comparing guests with and without drivers in different units. Proxmox VE 8 and containers report only the first figure and keep using it.

Migration Controls

  • Maximum concurrent migrations
  • Migration cooldown period between successive operations
  • Balance larger VMs first option
  • Prevent overprovisioning toggle

Node Management

  • Excluded nodes -- DRS leaves these nodes out of all calculations

A node in maintenance is also left out of DRS placement, both as a source and as a target. DRS does not evacuate it. Entering maintenance runs the Proxmox command ha-manager crm-command node-maintenance enable, and Proxmox HA relocates the HA-managed guests only. Guests that are not managed by HA stay on the node and have to be migrated or shut down separately.

To empty several nodes of a cluster at once without moving a guest twice, put them in maintenance as one operation, see Maintenance on Several Nodes.

PVE-PROD Guests tab grouped by node with web-02 and acme-web-01 ticked on pve3, the bar reading 3 guest(s) selected with Clear and Migrate selection, and the pve2 and pve1 groups collapsed
To move guests yourself, tick them in a cluster's Guests tab, then click Migrate selection.
Migrate selection (3) dialog with Parallel migrations 2, Memory ceiling on targets 90 percent, Apply to all set to Automatic placement, web-02 (restart) from pve3 to pve2, acme-web-01 (live) from pve3 to pve1 and acme-db-01 (live) from pve2 to pve3, the projected memory and CPU load per node after the migration, and Start the migration
The planner picks a target for each guest and shows the projected load per node before you start.

Affinity Engine

  • Enable/disable affinity rules
  • Enforce affinity (hard vs. soft mode globally)

Triggering an Evaluation​

Click the Evaluate button in the page header to manually trigger a DRS evaluation cycle. DRS will re-analyze all connected clusters and generate fresh recommendations. In Partial or Automatic mode, qualifying recommendations may be executed immediately.

DRS in a High Availability Deployment​

On a high availability ProxCenter stack, one orchestrator at a time is elected leader, and DRS runs on it, the reconciliation sweep above included. The DRS page is populated whichever node serves your session: the metrics and recommendations it reads, and the Approve, Execute and Evaluate actions it sends, are routed to the leader, so it does not matter which node HAProxy handed the request to. The routing goes through ORCHESTRATOR_LEADER_URL, set on the frontend of every node to the local HAProxy leader frontend, which health-checks each orchestrator with GET /api/v1/leader (200 on the leader, 503 elsewhere). When the variable is not set, calls go to ORCHESTRATOR_URL, which is the single-node behavior. An HA stack installed before v1.4.9 needs the HAProxy leader frontend and the variable added by hand, see HA prerequisites.

Deployment diagram of a three-node high-availability stack. The browser reaches the frontend of node 2 through the VIP or your reverse proxy. The frontend sends the /drs/* and /metrics/* calls to its local HAProxy on 127.0.0.1:8081, set as ORCHESTRATOR_LEADER_URL, and every other call to its own orchestrator on 127.0.0.1:8080. HAProxy health-checks the three orchestrators with GET /api/v1/leader on port 8080: the orchestrator of node 1 answers 200, receives the forwarded calls and runs DRS and the reconciliation sweep, while the followers on nodes 2 and 3 answer 503. Nodes 1 and 3 run the same frontend and HAProxy.Deployment diagram of a three-node high-availability stack. The browser reaches the frontend of node 2 through the VIP or your reverse proxy. The frontend sends the /drs/* and /metrics/* calls to its local HAProxy on 127.0.0.1:8081, set as ORCHESTRATOR_LEADER_URL, and every other call to its own orchestrator on 127.0.0.1:8080. HAProxy health-checks the three orchestrators with GET /api/v1/leader on port 8080: the orchestrator of node 1 answers 200, receives the forwarded calls and runs DRS and the reconciliation sweep, while the followers on nodes 2 and 3 answer 503. Nodes 1 and 3 run the same frontend and HAProxy.
Whichever node serves your session, its frontend sends the DRS calls through its local HAProxy to the orchestrator that leads, the only one that holds the DRS data.

Permissions​

PermissionDescription
automation.viewShow DRS in the provider menu and read status, recommendations, settings, rules and history
automation.manageChange DRS settings and affinity rules, and approve or reject recommendations
automation.executeTrigger an evaluation or enforce affinity rules
vm.migrateExecute a migration recommendation

The DRS menu requires automation.view in the provider tenant. Viewing recommendations does not grant permission to execute them; execution also depends on the connection credentials and migration prerequisites.