Site icon mulcas

vSphere 7 - Describe How DRS Scores Virtual Machines

Describe how DRS scores virtual machines

VMware vSphere 7.x Study Guide for VMware Certified Professional – Data Center Virtualization certification. This article covers Section 1: Architectures and Technologies. Objective 1.6.3 – Describe how Distributed Resource Scheduler (DRS) scores virtual machines.

This article is part of the VMware vSphere 7.x - VCP-DCV Study Guide. Check out this page first for an introduction, disclaimer, and updates on the guide. The page also includes a collection of articles matching each objective of the official VCP-DCV.

Describe how DRS scores virtual machines.

This objective needs to describe how Distributed Resource Scheduler (DRS) scores virtual machines. Here, we overview the Old DRS model vs. the new one presented in vSphere 7. Then we study in-depth how VMware DRS scores the virtual machines.

This topic is a child of Objective 1.6 – Describe ESXi cluster concepts. It is also highly related to the previous topic: Describe Distributed Resource Scheduler (DRS). Both topics should be considered and are recommended before moving to this one.

When searching for information on this topic, you'll be bumping into two excellent articles from Niels Hagoort: 

It seems this objective has been specially created out of these articles, which were also pushed to the core.vmware documentation. At the moment of creating this piece, I can't find detailed information about how DRS scores virtual machines from the official “VMware Docs”. 

I am putting the highlights of the first article here, so in short, you need to visit these links to get a complete understanding of DRS scoring VMs.

1. DRS Score

When migrating VMs, each migration recommendation is computed using the VM happiness metric, which measures execution efficiency. 

By default, the automation level is specified for the whole cluster. You can also set a custom automation level for individual virtual machines.

2. Old DRS vs. New DRS (vSphere 7)

vSphere DRS used to focus on the cluster state, checking if it needs rebalancing because one ESXi host could be over-consumed while another ESXi host has fewer resources consumed. 

Source VMware

The new DRS logic in vSphere 7 takes a very different approach. It computes a VM DRS score on each host and moves the VM to the host that provides the highest VM DRS score.

Important to note is that the improved DRS now runs every minute, providing a more granular way to calculate workload placement and balancing. 

Source VMware

3. How DRS Scores VMs

The new DRS logic quantifies virtual machine happiness using the VM DRS score. 

Obtaining a VM DRS score of 80-100% indicates mild to no resource contention. It does not necessarily mean that a virtual machine in the 80-100% bucket is doing way better than a virtual machine in the lower buckets. That is because many metrics influence the VM DRS score. Performance metrics are used, but capacity metrics are also incorporated in the algorithm.

The performance drivers for the VM DRS score are contention-based, using metrics like CPU %ready time, good CPU cache behavior, and memory swap. The reserve resource capacity, or headroom, that a current ESXi host has is also considered to determine the VM DRS score.

Source VMware

4. VM DRS Score vs. Cluster DRS Score

The improved DRS is no longer thinking about the relative load between ESXi hosts in a cluster; the main focus is on the happiness of the workloads. 

5. Goodness Modeling

The VM DRS score is calculated based on the goodness model of DRS in vSphere 7. The goodness modeling enables DRS to compute the goodness (happiness) of a VM on any given host in the cluster. Looking closer into the VM DRS Score, it is simply the goodness of the VM on its current host expressed as a percentage. To understand how DRS calculates the VM DRS Score, we need to understand the goodness modeling in vSphere 7.

Important Note: One more time, you MUST read the referenced articles. There you will find more and key information about:

The Goodness Modeling is referenced in: vSphere 7 – A Closer Look at the VM DRS Score

Resources

vSphere Resource Management

vSphere 7 – Improved DRS

vSphere 7 – A Closer Look at the VM DRS Score

Conclusion

The topic reviewed in this article is part of the VMware vSphere 7.x Exam (2V0-21.20), which leads to the VMware Certified Professional – Data Center Virtualization 2021 certification. 

Section 1 - Architectures and Technologies. 

Objective 1.6.3 – Describe how Distributed Resource Scheduler (DRS) scores virtual machines.

See the full exam preparation guide and all exam sections from VMware.

More topics related to VMware

Exit mobile version