Top Banner
Managing VMware Distributed Resource Scheduler This chapter contains the following sections: About VMware Distributed Resource Scheduler, page 1 Using DRS Affinity Rules, page 1 Using DRS Automation Levels, page 3 Enabling or Disabling DRS, page 4 About DRS Group Manager, page 5 About Mapping VM Affinity Rules, page 5 Mapping VM Affinity Rules, page 6 About VMware Distributed Resource Scheduler VMware Distributed Resource Scheduler (DRS) is a utility that balances computing workloads with available resources in a virtualized environment. DRS dynamically allocates the available resources amongst VMs based on predefined rules called VM affinity rules. These rules are defined at the cluster level. When a VM experiences an increased load, DRS automatically allocates additional resources by redistributing VMs amongst the physical servers in the resource pool. In addition to VM affinity rules, the placement of VMs across the cluster is based on vMotion compatibility. vMotion has it's own set of requirements to move the VMs across the hosts. For example, if a VM that has a local network (not connected to any physical adapter) cannot be moved using VMotion. Using DRS Affinity Rules You can control the placement of virtual machines on hosts within a cluster by using affinity rules. Affinity rules An affinity rule defines a set of VMs that should run on the same host. This rule helps to keep the VMs together under a single host, which is compatible within the cluster. Cisco UCS Director VMware vSphere Management Guide, Release 5.0 OL-32468-01 1
6

Managing VMware Distributed Resource Scheduler · Step 4 ClickEditDRSAutomationLevel. Step 5 IntheEditDRSAutomationLevelscreen,completethefollowingfields: Cisco UCS Director VMware

Jul 04, 2018

Download

Documents

lenguyet
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Managing VMware Distributed Resource Scheduler · Step 4 ClickEditDRSAutomationLevel. Step 5 IntheEditDRSAutomationLevelscreen,completethefollowingfields: Cisco UCS Director VMware

Managing VMware Distributed ResourceScheduler

This chapter contains the following sections:

• About VMware Distributed Resource Scheduler, page 1

• Using DRS Affinity Rules, page 1

• Using DRS Automation Levels, page 3

• Enabling or Disabling DRS, page 4

• About DRS Group Manager, page 5

• About Mapping VM Affinity Rules, page 5

• Mapping VM Affinity Rules, page 6

About VMware Distributed Resource SchedulerVMware Distributed Resource Scheduler (DRS) is a utility that balances computing workloads with availableresources in a virtualized environment. DRS dynamically allocates the available resources amongst VMsbased on predefined rules called VM affinity rules. These rules are defined at the cluster level. When a VMexperiences an increased load, DRS automatically allocates additional resources by redistributingVMs amongstthe physical servers in the resource pool. In addition to VM affinity rules, the placement of VMs across thecluster is based on vMotion compatibility. vMotion has it's own set of requirements to move the VMs acrossthe hosts. For example, if a VM that has a local network (not connected to any physical adapter) cannot bemoved using VMotion.

Using DRS Affinity RulesYou can control the placement of virtual machines on hosts within a cluster by using affinity rules.

Affinity rules

An affinity rule defines a set of VMs that should run on the same host. This rule helps to keep the VMstogether under a single host, which is compatible within the cluster.

Cisco UCS Director VMware vSphere Management Guide, Release 5.0 OL-32468-01 1

Page 2: Managing VMware Distributed Resource Scheduler · Step 4 ClickEditDRSAutomationLevel. Step 5 IntheEditDRSAutomationLevelscreen,completethefollowingfields: Cisco UCS Director VMware

Anti-affinity rules

An anti-affinity rule defines a set of VMs that should run on different hosts. This rule helps to separatethe VMs and make sure that they are not under a single host.

VM-Host Rules

AVM-Host rule defines affinity and anti-affinity relationships between VMs and hosts. This rule helpsto either keep or separate the VMs as a group.

Viewing DRS Rules

Step 1 On the menu bar, chooseVirtual > Compute.Step 2 Click the Clusters tab.Step 3 Double-click the cluster.Step 4 Click the DRS Rules tab.

Adding DRS Rules

Step 1 On the menu bar, chooseVirtual > Compute.Step 2 Click the Clusters tab.Step 3 Double-click the cluster.Step 4 Choose the DRS Rules tab.Step 5 Click Add.Step 6 In the Add Rule screen, complete the following fields:

DescriptionName

The name for the rule.Rule Name field

Choose the type of rule. It can be one of the following:

• Keep Virtual Machines Together -- Choose thisoption to add an affinity rule.

• Separate Virtual Machines-- Choose this option toadd an anti-affinity rule.

• Virtual Machines to hosts-- Choose this option toadd a VM-Host affinity rule.

Rule Type drop-down list

Cisco UCS Director VMware vSphere Management Guide, Release 5.02 OL-32468-01

Managing VMware Distributed Resource SchedulerViewing DRS Rules

Page 3: Managing VMware Distributed Resource Scheduler · Step 4 ClickEditDRSAutomationLevel. Step 5 IntheEditDRSAutomationLevelscreen,completethefollowingfields: Cisco UCS Director VMware

DescriptionName

Choose the status of the rule. It can be one of the following:

• Enable

• Disable

Rule Status drop-down list

Select the VM.Select VM button

Step 7 Click Submit.

Using DRS Automation LevelsAfter you create a DRS cluster, you can customize the automation level for individual VMs to override thecluster's default automation level. The automation level can be set to any one of the following:

• Manual -- A DRS enabled cluster set to manual will make recommendations to the administrator butwill take no action. It is the administrator's responsibility to review and execute the recommendation.

• Partially automated -- When the VMs are powered-on, they are automatically placed on the DRSrecommended hosts. VM migrations caused by resource imbalance will be recommended by DRS butwon't be moved automatically

• Fully automated -- DRS automatically places the VMduring power-on and also during resource imbalanceon the DRS recommended hosts.

Editing DRS Automation Level

Step 1 On the menu bar, chooseVirtual > Compute.Step 2 Click the Clusters tab.Step 3 Choose the cluster that you want to enable or disable DRS.Step 4 Click Edit DRS Automation Level.Step 5 In the Edit DRS Automation Level screen, complete the following fields:

Cisco UCS Director VMware vSphere Management Guide, Release 5.0 OL-32468-01 3

Managing VMware Distributed Resource SchedulerUsing DRS Automation Levels

Page 4: Managing VMware Distributed Resource Scheduler · Step 4 ClickEditDRSAutomationLevel. Step 5 IntheEditDRSAutomationLevelscreen,completethefollowingfields: Cisco UCS Director VMware

DescriptionName

Choose the type of DRS automation level. It can be one ofthe following:

•Manual

• Partially Automated

• Fully Automated

DRS Automation Level radio buttons

Step 6 Click Submit.

Enabling or Disabling DRS

Step 1 On the menu bar, chooseVirtual > Compute.Step 2 Click the Clusters tab.Step 3 Choose the cluster that you want to enable or disable DRS.Step 4 Click Enable/Disable DRS.Step 5 In the Enable/Disable DRS screen, complete the following fields:

DescriptionName

Check the checkbox to enable DRS.Enable DRS checkbox

Choose the type of DRS automation level. It can be one ofthe following:

•Manual

• Partially Automated

• Fully Automated

DRS Automation Level radio buttons

Step 6 Click Submit.

Cisco UCS Director VMware vSphere Management Guide, Release 5.04 OL-32468-01

Managing VMware Distributed Resource SchedulerEnabling or Disabling DRS

Page 5: Managing VMware Distributed Resource Scheduler · Step 4 ClickEditDRSAutomationLevel. Step 5 IntheEditDRSAutomationLevelscreen,completethefollowingfields: Cisco UCS Director VMware

About DRS Group ManagerThe DRS Group Manager feature in Cisco UCS Director allows you to group a set of VMs or Hosts for bulkmigration. These groups can be used when the VM-Host affinity rules are applied.

Using DRS Group Manager

Step 1 On the menu bar, chooseVirtual > Compute.Step 2 Click the Clusters tab.Step 3 Double-click the cluster.Step 4 Choose the DRS Group Manager tab.Step 5 Click Add.Step 6 In the Add Group screen, complete the following fields:

DescriptionName

The name for the DRS group.Name field

The type of group. It can be one of the following:

• VM Group

• Host Group

Type drop-down list

Select the VM.This button is displayed if you chooseVMGroupin the Type drop-down list above.

NoteSelect VM button

Click this button to group a set of hosts.This button is displayed if you choose HostGroup in the Type drop-down list above.

NoteSelect Host button

Step 7 Click Submit.

About Mapping VM Affinity RulesIn Cisco UCSDirector, DRS rules can be included as part of computing policies.When you create a computingpolicy, you can choose to map VM affinity rules. After the computing policy is created with the VM affinityrules mapped, a VM being provisioned with the computing policy will be added using those set of VM affinityrules.

Cisco UCS Director VMware vSphere Management Guide, Release 5.0 OL-32468-01 5

Managing VMware Distributed Resource SchedulerAbout DRS Group Manager

Page 6: Managing VMware Distributed Resource Scheduler · Step 4 ClickEditDRSAutomationLevel. Step 5 IntheEditDRSAutomationLevelscreen,completethefollowingfields: Cisco UCS Director VMware

Mapping VM Affinity Rules

Step 1 On the menu bar, choose Policies > Virtual/Hypervisor Policies > Computing.Step 2 Click the VMware Computing Policy tab.Step 3 Choose the computing policy that you want to edit.Step 4 Click Edit.Step 5 In the Edit Computing Policy screen, complete the following fields:

DescriptionName

Choose the Include Selected Clusters optionSelected Clusters

Check the checkbox to map VM affinity rules.Map VM Affinity Rules checkbox

Choose the affinity rules to which the VMhas to bemappedafter provisioning.

(Optional)Affinity Rules

Step 6 Click Save.

Cisco UCS Director VMware vSphere Management Guide, Release 5.06 OL-32468-01

Managing VMware Distributed Resource SchedulerMapping VM Affinity Rules