Professional Documents
Culture Documents
By,
Shivakumar kalal
Mohammed Mohiuddin
INDEX
Cluster Maintenance mode: DRS evaluates a set of hosts that can be put in
maintenance mode at the same time in order to speed up the VMware Update
Manager remediation process. DRS will take HA, DPM, Fault Tolerance, vMotion
compatibility and reservations into account when determining the number of
hosts eligible for entering maintenance mode simultaneously.
Support for agent virtual machines: Agent virtual machines are virtual
machines that are required to be deployed and active on every host and belong
to solutions that use ESX Agent Manager. DRS and DPM fully support ESX agents
and respect the requirements of the ESX agent virtual machine.
DRS and DPM understands that:
Agent virtual machines reservations must be respected, even when the virtual
machine is not powered on
Agent virtual machines do not have to be evacuated for host enter maintenance mode
or standby
Agent virtual machines must be available before virtual machines can complete
migration or power-on to a host
Requirements
In order for DRS to function correctly, the virtual infrastructure must meet
the following requirements:
VMware ESXi in a cluster
VMware vCenter Server
VMware vSphere Enterprise or Enterprise Plus License
Meet vMotion requirements (not mandatory, but highly recommended)
Shared datastores accessible by all ESXi hosts inside the cluster.
Private migration network
Gigabit Ethernet
Processor compatibility
For DRS to allow automatic load balancing, vMotion is required. For initial
placement though, vMotion is not a requirement.
DRS Cluster Settings
The automation level determines the level of autonomy of DRS, ranging from
generating placement and load-balancing recommendations to automatically
applying the generated recommendations. Three automation levels exist:
Manual: DRS generates initial placement recommendations for each virtual
machine. If the cluster is unbalanced, DRS generates migration
recommendations and presents these recommendations to the user via the DRS
tab on the cluster object. The user must manually apply each recommendation.
Partially automated: When a virtual machine is powered on, DRS
automatically places it on the most suitable host. If the cluster is unbalanced,
DRS suggests migration recommendations via the DRS tab on the cluster
object. The user must apply each recommendation manually.
Fully automated: When a virtual machine is powered on, DRS automatically
places it on the most suitable host. If the cluster is unbalanced, DRS
automatically migrates the virtual machine to a more suitable host.
DRS automation level
Initial Placement
vCenter creates and runs a single DRS thread per each cluster.
The DRS thread communicates with the management agent
(VPXA) on each ESXi host inside the cluster.
By default, a load balance calculation thread is invoked every five
minutes. This thread calculates the imbalance of the cluster,
applies resource settings and, if needed, generates migration
recommendations. In practice, the thread may be invoked more
frequently due to changes made inside the cluster.
For example, DRS will be invoked if the cluster detects changes
in its resource pool tree, operations and events such as changes
in resource supply, or modification of resource settings.
DRS-thread components
Events invoking DRS calculations
DRS Events and Statistics
The vCenter agent (VPXA) runs inside each ESXi host in the cluster
and enables a two-way communication between the ESXi host and
vCenter. VPXA keeps the status of both ESXi and virtual machines in
sync with the status shown in vCenter.
The VPXA sends information when a virtual machines power state
changes or when a virtual machine is migrated with vMotion.
Periodically, the VPXA sends additional notification and statistics to
the vCenter server. DRS sends messages to the ESXi host, such as
proposed migrations and information requests.
vCenter servers in Virtual Desktop Infrastructure (VDI) environments
experience more load due to the larger number of virtual machines
and higher frequency of virtual machine power state changes,
leading to more frequent invocation of DRS threads.
Separate VDI Workloads From VSI
Workloads
In large environments, we recommend separating VDI workloads
and server workloads and assigning different clusters to each
workload in order to reduce the number of DRS invocations. By
isolating server workloads from VDI workloads, only the VDI
clusters experience increased DRS invocations, reducing overall
overhead, complexity and the number of calculations performed
by DRS.
Basic design principle: Separate VDI workloads and server
workloads and assign different clusters to each workload to
reduce the DRS invocations.
Cluster Sizing
The general guideline is that the more hosts you have in the
cluster, the more opportunities DRS has to place the virtual
machines. The maximum number of hosts supported in vSphere
5.0 for a DRS cluster is 32. Although the maximum number of
hosts has not increased over the vSphere 4 maximum, vSphere
5.0 is capable of running more virtual machines per cluster,
supports more vCPUs per host, and can assign more memory per
virtual machine. It is expected that DRS will not be the limiting
factor when designing cluster configurations.
However, the following can impact DRS cluster and virtual
machine sizing:
Size of host versus the maximum amount of virtual machines in a cluster: In vSphere 5.0, the
maximum number of virtual machines inside a cluster is 3000. Current server hardware
configurations are able to run more than 512 virtual machines per ESXi host. Please take the
maximums into considerations when researching scale-up versus scale out cluster
configurations.
Number of virtual machines versus number of LUNs required: vSphere 5 allows up to 256 LUNs
connected to an ESXi 5 host. DRS only considers hosts compatible for virtual machine
migration if hosts are connected to the same VMFS datastore. Consistent VMFS datastore
connectivity across all hosts in the DRS cluster is considered a best practice. If more than 256
VMFS datastores need to be connected, consider using multiple DRS clusters and size them
accordingly.
Hardware configuration Heterogeneous or Homogeneous: Heterogeneous configured host
can impact the effectiveness of DRS. DRS will
not migrate virtual machines if the physical configuration cannot host the virtual machines. By
leveraging EVC, multiple hardware configurations can
exists within a DRS cluster and allow older hardware configurations to be mixed with new
hardware configurations. Although we recommend enabling EVC, we advise you to refrain from
mixing hardware configurations that are too different. For example, vSphere 5.0 allows up to
32 vCPUs and 1TB of memory assigned to a virtual machine and we expect to see an increase
in the number of larger virtual machines within the virtual infrastructure. Larger virtual
machines such as 12 or 16 vCPU virtual machines cannot be hosted on a dual Quad Core CPU
system.