Site icon mulcas

vSphere 7 - Describe Distributed Resource Scheduler (DRS)

Describe Distributed Resource Scheduler (DRS)

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.1 – Describe Distributed Resource Scheduler (DRS) 

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 Distributed Resource Scheduler (DRS)

In objective 1.6.1, you need to describe Distributed Resource Scheduler (DRS). DRS, in partnership with vMotion, is one of the coolest products offered by VMware. First, let’s study what DRS is and its key features. Then, let’s take a look at the DRS’ major requirements and key topics: DRS automation and aggression levels, and DRS rules. Finally, let's take a glance at other important DRS features. 

Note: If you ask anyone what is the most impressive VMware technology they had worked with, more often than not, they will tell vMotion and DRS. Watching a virtual machine moving (migrating) from one host to another without the need to be powered off, is something that still amazes me. 

1. What is VMware DRS

VMware vSphere Distributed Resource Scheduler (DRS) is the resource management feature of vSphere. DRS improves vSphere workload management by grouping VMware ESXi hosts into resource clusters to segregate the computing needs of different business units.

VMware DRS is included in the vSphere Enterprise Plus.

DRS has the following two main functions:

DRS groups VMware ESXi hosts into resource clusters to segregate the computing needs of different business units. VMware vSphere clusters allow to:

Source VMware

1.1 vSphere Cluster Services (vCLS) 

vSphere Cluster Services (vCLS) is enabled by default and runs in all vSphere clusters. vCLS ensures that if the vCenter Server becomes unavailable, cluster services remain available to maintain the resources and health of the workloads that run in the clusters. 

2. DRS Key Features

Balanced Capacity

DRS balances computing capacity by cluster to deliver optimized performance for hosts and virtual machines. DRS is used to:

Initial Workload Placement

When you power on a virtual machine in a cluster, DRS places it on an appropriate host or generates a recommendation, depending on the automation level selected. 

Automated Load Balancing

DRS spreads the virtual machine workloads across vSphere hosts inside a cluster and monitors available resources for you. DRS will migrate (VMware vSphere vMotion) virtual machines to other hosts within the cluster to maximize performance; based on the automation level.

Cluster Maintenance

DRS accelerates the VMware vSphere Update Manager remediation process by determining the optimum number of hosts that can enter maintenance mode simultaneously, based on current cluster conditions and demands.

Constraint Correction

DRS redistributes virtual machines across vSphere cluster hosts to comply with user-defined affinity and anti-affinity rules following host failures or during maintenance operations.

3. DRS requirements

Before using vSphere DRS, be sure the vSphere environment meets these requirements:

4. DRS Key Settings

Although DRS performs initial placements so that load is balanced across the cluster, changes in virtual machine load and resource availability can cause the cluster to become unbalanced. To correct such imbalances, DRS generates migration recommendations.

When a cluster becomes unbalanced, DRS makes recommendations or migrates virtual machines, depending on the default automation level.

4.1 DRS Automation Levels

During initial placement and load balancing, DRS generates placement and vMotion recommendations, respectively. DRS can apply these recommendations automatically, or you can use them manually.

DRS has three levels of automation:

Manual 

You must use both initial placement and load balancing recommendations.

Partially Automated 

DRS applies recommendations only for initial placement.

Fully Automated 

DRS applies both initial placement and load balancing recommendations automatically.

4.2 DRS Migration Threshold

The DRS migration threshold allows you to specify which recommendations are generated and then applied (if in fully automated mode) or shown (if in manual mode). 

This threshold measures how aggressive DRS is in recommending migrations to improve VM happiness.

After a recommendation receives a priority level, this level is compared to the migration threshold you set. If the priority level is less than or equal to the threshold setting, the recommendation is either:

4.3 DRS Rules

To further allow you to customize the behavior of vSphere DRS for your specific environment, vSphere lets you create DRS rules. You can control the placement of virtual machines on hosts within a cluster by using affinity rules.

You can create two types of rules VM-VM Affinity Rules and VM-Host Affinity Rules.

VM-VM affinity rule

A VM-VM affinity rule specifies whether individual virtual machines should run on the same host or be maintained on separate hosts. This type of rule creates affinity or anti-affinity between individual virtual machines that you select.

VM-Host affinity rule

A VM-Host affinity rule specifies whether or not the members of a selected virtual machine DRS group can run on the members of a specific host DRS group. It defines an affinity relationship between a group of virtual machines and hosts. 

A VM-Host affinity rule includes the following components.

5. Other DRS Features

5.1 Distributed Power Management (DPM)

DRS optimizes power consumption dynamically within a vSphere cluster with VMware vSphere Distributed Power Management (DPM). 

When capacity demands increase, DPM powers on hosts on standby to absorb the additional workload. DPM can also be set to issue recommendations but take no action.

When demand for resources is low, DPM places hosts in standby mode, and when demand is high, DPM powers on enough hosts to manage that demand and keep your services available. 

Dynamic power management with DPM allows to:

5.2 Predictive DRS

Predictive DRS leverages data from vRealize Suite operations to provide better placement, load balancing, and resource contention prevention. The goal of Predictive DRS is to respond in advance to metrics being forecasted by DRS, based on known usage patterns of the workloads on the platform. vRealize Operations Manager can send these forecasts and predicted utilization spikes and the resource contention. Predictive DRS enables the user to mitigate potential host failures. 

5.3 Storage DRS

Storage DRS is discussed in Objective 1.6.5.

Resources

Distributed Resource Scheduler

vSphere Resource Management

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.1 – Describe Distributed Resource Scheduler (DRS) 

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

More topics related to VMware

Exit mobile version