Managing DRS
Clusters
The vSphere Client UI allows you to explore
DRS cluster behavior, which is also described in the
Resource Management Guide
. When DRS is
running, it generates recommendations and associated information that result in
a well balanced cluster.
- Initial placement of virtual machines
- Virtual machine migration for load balancing. Each migration recommendation has a rating, which you can find in theClusterRecommendation.ratingproperty. Client applications can choose to consider only high-priority migrations are considered or migrations with multiple priority levels.
- Checks whether DRS clusters are valid — enough resources are available to start additional virtual machines — or not valid.
DRS recommendations are stored in the
ClusterComputeResource.recommendation
property,
which is an array of
ClusterRecommendation
data
objects. Each
ClusterRecommendation
includes
information about the action to perform and information you can use to display
information to end users or for logging.
- Client applications can callClusterComputeResource.ApplyRecommendationto apply one or more recommendations.
- For more fine-grained control, client applications can perform individual actions only. TheClusterRecommendation.actionproperty is an array ofClusterActionobjects. EachClusterActionincludes a target for the action and the type, which is a string that is one of the values of theActionTypeenum (HostPowerV1,MigrationV1,VmPowerV1). Client applications can use theActionTypeinformation to act on DRS recommendations by powering on hosts, migrating virtual machines, or powering on virtual machines by callingDatacenter.PowerOnMultiVM_Task.