ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

VCP7-DCV Objective 1.6.1 – Describe Distributed Resource Scheduler (DRS)

By Vladan SEGET | Last Updated: October 11, 2021

Shares

VMware vSphere has a Distributed Resource Scheduler (DRS) allowing automatic VM placement and vMotion. The purpose of DRS is to make VMs “happy” so they run smoother. DRS can be set to automatically move VMs based on its algorithms, or be set to manual and give recommendations for manually moving VMs.

This post is part of Free VCP-DCV 2021 Study Guide. The main page of the guide is here – VCP7-DCV Study Guide – VCP-DCV 2021 Certification, and you'll find there ALL the chapters.

In vSphere 7.0, DRS uses a new cost modeling algorithm that is flexible and balances network bandwidth together with CPU and memory usage. There is a metric called granted memory which is used for load balancing.

DRS runs once every minute rather than every 5 minutes, as in previous vSphere releases. The newer DRS versions do recommend smaller (in terms of memory) VMs for migration to facilitate faster vMotion migrations. The older DRS versions tend to recommend large virtual machines to minimize the number of migrations.

 

VCP7-DCV FREE study guide

Download FREE Study VCP7-DCV Guide at Nakivo.

  • The exam duration is 130 minutes
  • The number of questions is 70
  • The passing Score is 300
  • Price = $250.00

 

With vSphere DRS enabled cluster, you can set your DRS to Manually, partially automated, or Fully automated.

The configuration is accessible at the cluster level. You select your cluster > Configure > vSphere DRS.

You'll get to this view where you can click Edit to change the settings.

  • Manual – DRS generates both power-on placement recommendations, and migration recommendations for virtual machines. Recommendations need to be manually applied or ignored.
  • Partially Automated – DRS automatically places virtual machines onto hosts at VM power-on. Migration recommendations need to be manually applied or ignored.
  • Fully Automated (default) – DRS automatically places virtual machines onto hosts at VM power-on, and virtual machines are automatically migrated from one host to another to optimize resource utilization.

In the middle, you can drag the Migration threshold bar. Migration Threshold specifies how aggressively DRS recommends vMotions. Recommendations are generated automatically based on resources demanded by the virtual machines, resource allocation settings (reservations, limits, and shares) the resources provided by each host and the cost of migrating VMs. The more conservative the setting, the less frequent the vMotions.

When you drag the button to the right it will be in Aggressive mode and DRS provides recommendations when workloads are even slightly imbalanced and marginal improvement may be realized. For dynamic workloads, this may generate frequent vMotion recommendations.

Other Options – Predictive DRS

In addition to real-time metrics, DRS will respond to forecasted metrics provided by vRealize Operations Manager. Only forecasted metrics with high confidence will be considered by DRS to balance the cluster’s workloads prior to predicted utilization spikes and resource contention. You must also configure Predictive DRS in a version of vRealize Operations that supports this feature.

VM Automation

Override for individual virtual machines can be set from the VM Overrides page.

What is the VM DRS Score?

The execution efficiency of this virtual machine. Values closer to 0% indicate severe resource contention while values closer to 100% indicate mild to no resource contention. DRS will try to maximize the execution efficiency of each virtual machine in the cluster while ensuring fairness in resource allocation to all virtual machines.

A DRS score is a measure of the resources available for consumption by the VM(s). The higher the DRS score for a VM, the better its resource availability. DRS moves VMs to improve their DRS scores. DRS also calculates a DRS score for a cluster, which is a weighted sum of the DRS scores of all the virtual machines in the cluster. In Sphere 7.0, DRS calculates the core for each virtual machine on each ESXi host in the cluster every minute.

The calculation of an ideal throughput is executed by the DRS logic and an actual throughput for each resource (CPU, memory, and network) for each VM.

The VM’s efficiency for a particular resource is a ratio of the goodness over the demand. A virtual machine’s DRS score (total efficiency) is the product of its CPU, memory, and network efficiencies.

DRS applies resource costs during those calculations. There are costs for CPU cache, CPU ready and CPU tax. Same for memory where DRS takes into accounts the costs for memory burstiness, memory reclamation, and memory tax.

There are also network resources costs as well as utilization, involved. DRS does the comparison of the VM's DRS score for the host where the VM is currently running on. The DRS system makes sure that the host where it actually runs can provide the best DRS score for that particular VM. If not, it calculates migration costs. If all those factors matches and the system sees better DRS score on another host, it makes the vMotion recommendation.

DRS and Affinity Rules

The VMware documentation covering VM-Host Affinity Rules. You can find there how to add host affinity must rule. Basically, the VM-host affinity rule specifies whether the rule is a requirement (“must”) or a preference (“should”) and whether it is affinity (“run on”) or anti-affinity (“not run on”).

VM-VM affinity and anti-affinity rules are similar. It specifies if selected VMs should run on the same host or be kept on separate hosts. These rules are typically used to create affinity or anti-affinity between individual VMs.

Watch out for conflicts here, because you can have multiple VM-VM affinity rules in different directions causing conflicts. For example, you can have one rule that keeps 2 VMs on separate hosts, while another rule puts them together. You need to select one of the rules to apply and disable or remove the rule that's in conflict.

Thanks for reading.

  • VMware VCP7-DCV Exam page here.
  • VCP6.7-DCV Study Guide – VCP-DCV 2019 certification

More posts from ESX Virtualization:

  • vSphere 7.0 Download Now Available
  • vSphere 7.0 Page [All details about vSphere and related products here]
  • VMware vSphere 7.0 Announced – vCenter Server Details
  • VMware vSphere 7.0 DRS Improvements – What's New
  • How to Patch vCenter Server Appliance (VCSA) – [Guide]
  • What is The Difference between VMware vSphere, ESXi and vCenter
  • How to Configure VMware High Availability (HA) Cluster

Stay tuned through RSS, and social media channels (Twitter, FB, YouTube)

Shares
5/5 - (1 vote)

| Filed Under: How To, Server Virtualization, Tips Tagged With: Distributed Resource Scheduler (DRS)

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Dan says

    September 2, 2021 at 9:13 am

    Great post thank you!
    Could you possibly mention how the migration cost is calculated and/or what it is based on ?

    Thank you kindly
    Dan

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in