Tuesday, October 8, 2013

VMware Distributed Resource Scheduler (DRS) and Dynamic Power Management (DPM)

In this post i will show how to configure DRS and DPM. DRS and DPM are the amazing vSphere features. The job of DRS is to understand the resources of virtual infrastructure. It knows about CPU, Memory, Power and Storage utilization. DRS ensures that virtual machine gets the resources that it needs. DRS is not load balancing, its not trying to make sure every ESXi host has the exact same cpu or memory utilization, what it does it look after the resource requirements for the virtual machines, it checks to see if that virtual machine is getting the resources it needs from the current ESXi server. If the virtual machine is not getting the resources it will motion it to another ESXi server where it would get the resources. The DRS not only works with existing virtual machine but it also works with brand new virtual machine. When you create a new virtual machine DRS will automatically place the virtual machine on the right ESXi server. When DRS moves running virtual machine from one ESXi server to another it uses VMware vMotion therefore there is no downtime.
DPM is a sub-feature of DRS. In order to use DPM, the DRS must be enabled first. When the load on your virtual infrastructure is low, DPM will use vMotion to migrate running virtual machines and actually consolidates them to many fewer ESXi servers. Than it will put the ESXi server to sleep mode from where the virtual machines are moved. In other words those ESXi physical servers are powered off and they wouldn't be using as much electricity as compared to what they were using before. When the load of virtual infrastructure increases the DRS and DPM will power on the ESXi servers and automatically distribute the virtual machines. DPM will help organization saving lot of money over the time.

DRS and DPM Requirements:
1- Minimum of vSphere Enterprise license
2- Shared storage must be present on each host
3- DRS will use vMotion, therefore vMotion must be configured
4- DPM will require DRS to be configured first

Since its a lab environement, i have already add two ESXi hosts in the datacenter. vMotion is also configured. For vMotion configuration check this post
http://mfaizanansari.blogspot.com/2013/09/vmware-vmotion-configuration.html

1- Right click on the datacenter and select new cluster.

2- Enter a suitable name and check on turn on vSphere DRS. Select next.

 3- Select next.

4- Select automatic option to turn on DPM feature.

  5- Select next.

6- Select next.

 7- Select finish.

8- After successful configuration of DRS and DPM. Now its time to add the host in the cluster. Either right click the cluster and select host or use drag and drop method. I am using drag and drop method.

9- Select finish.
 Use the same method to add another host.

10- DRS and DPM hav been configured successfully. Now DRS and DPM will use their magic over the time.

 Conclusion: DRS and DPM have been successfully configured. In the next post i will show how to configure the storage DRS.

No comments:

Post a Comment