Skip to main content

View the load and apply DRS recommendations

At the Manual and Partially Automated levels, DRS only proposes VM moves — recommendations. This page shows how to assess node load, understand why DRS proposes a move and apply it. How DRS calculates load and picks moves is described in DRS.

Before you begin​

  • To view load, recommendations, faults and history, you need the "View DRS" privilege (the Cluster master role). To apply recommendations and run DRS, you need the "Apply DRS Recommendations" privilege; only the Cluster master has it.
  • DRS must be enabled. While it is off, node load is not shown and there are no recommendations.

1. View node load​

  1. In the left menu, select Provider Data Center → the cluster name and open the DRS Compute tab.
  2. In the menu on the left of the tab, select Cluster nodes. Each table row is a node:
    • State — Online, Offline or the maintenance mode state;
    • CPU (DRS) and RAM (DRS) — the DRS load: how much of the node resources its VMs need, as a percentage of the node capacity. The bar turns yellow above 75 % and red above 90 %;
    • Incoming migration slots and Outgoing migration slots — how many live migrations are running to and from the node now and how many can run at once.
  3. Click a node row. A panel opens on the right with the current DRS load and Node usage (host metrics) numbers and CPU and RAM charts for the selected period — from 15 minutes to 7 days.

Node usage (host metrics) is the actual load of the node from its metrics; DRS load is the averaged demand of its VMs. The Incomplete data: <N> VMs without metrics mark means that some VMs of the node have no CPU metrics.

2. View recommendations​

In the tab menu, select Recommendations. Above the table is the time of the pass the list belongs to: Last DRS run: <time>. Each row is one move:

  • VM — which VM to move; the name opens the VM page;
  • From and To — the current node and the destination node. For a move of disks to another pool, To shows the pool name;
  • Reason — Node CPU load, Node RAM load, Host maintenance or Fix rule <name>;
  • Priority — from which threshold the move would appear: Appears from level 2 is the strongest recommendation;
  • State — New, Applied by <user> or Applied automatically.

Every pass updates the list. Applied recommendations stay in it until the next pass and then move to the History tab.

If there are no recommendations, the table shows the reason: No recommendations: the cluster is balanced. Last DRS run: <time>, DRS has not run yet, Level 1: DRS makes only mandatory moves, load is not balanced, or the reason the pass was skipped, for example "DRS run skipped: fewer than two nodes are online".

3. Review the explanation of a recommendation​

Click a recommendation row. The Recommendation: <VM name> panel opens on the right:

  • Peak load of the pair (CPU) or Peak load of the pair (RAM) — the load of the busier of the two nodes before and after the move, for example 82% → 64%;
  • Cluster imbalance reduced by — what share of the current cluster imbalance the move removes;
  • Migration benefit holds for — for how many passes in a row the move has stayed beneficial;
  • Source node: <name> and Target node: <name> — CPU and RAM of each node before and after;
  • Rejected nodes — nodes DRS did not move the VM to, with the reason for each.

A move of disks to another pool has no explanation — its row does not open the panel.

4. Apply recommendations​

  1. Select the check boxes of the recommendations you need in the New state.
  2. Click Apply.

Center starts one move per recommendation on your behalf — a live migration of the VM or a move of its disks and shows Recommendations applied: <N>. The row state becomes Applied by <your login>, and the migration appears in Tasks with a link to the recommendation.

Center rejects a recommendation if:

  • it is out of date — DRS no longer proposes it, DRS is off, the VM is no longer on the original node, or the target node no longer accepts it: "The recommendation is out of date: DRS no longer proposes this migration";
  • it has already been applied: "The recommendation has already been applied by <who>";
  • DRS is disabled for the VM by its own level or the level of its VDC: "DRS is disabled for this VM";

5. Run a pass out of turn​

Click Run DRS in the tab header. Center shows DRS run started — or DRS run is already in progress if a pass was running at that moment — and refreshes the recommendations when the pass ends. The button is inactive if DRS is off, the cluster has one node or you do not have the privilege; the reason is in the tooltip on hover.

6. View faults​

Faults lists VMs whose move would help the balance but DRS did not make it in the last pass. The columns are VM, Node and Reason. Common reasons:

  • "No suitable node" — no node accepted the VM; nodes rejected it for different reasons;
  • "Another task is in progress on this VM";
  • "No load data" — the VM has no metrics;
  • "The VM migrated recently; it becomes available about <time>";
  • "A DRS migration in the opposite direction between nodes <A> and <B> was made recently: the migration is postponed until the penalty decays";
  • "The migration benefit is within node load fluctuations: DRS waits for the load to settle";
  • "Would violate rule <name>" — the move would violate a placement rule.

7. View history​

History lists applied recommendations, newest first: Time, VM, From, To, Initiator (the user login or system), the migration Result and Task — a link to it in Tasks. Click a row to open the explanation of the move.

Check the result​

An applied move is shown on the History tab with the migration Result, and the VM is on the new node in Cluster nodes. If the migration failed, open it from the link in Tasks and read the reason. Three failures of the last five DRS moves switch the cluster to manual mode — Emergency switch to manual mode.

Next​

API methods: drs-node-load-get, drs-node-load-history, drs-recommendation-list, drs-recommendation-apply, drs-fault-list, drs-history-list, drs-run — in the API reference.