O'Reilly logo

VMware vCenter Cookbook by Konstantin Kuminsky

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Automating VM placement with VM affinity

The Affinity rules feature is a part of Distributed Resource Scheduler (DRS) described in the Balancing loads between hosts recipe in Chapter 5, Optimizing Resource Usage. This feature allows administrators to control the VM placement on cluster hosts. DRS provides its balancing recommendations or migrates VMs automatically if configured, taking into account all the configured affinity rules.

Two types of affinity rules can be created:

  • VM-to-Host, which controls whether particular groups of VMs can be placed on certain hosts.
  • VM-to-VM, which define whether VMs can be kept together on the same host.

One of the more common use cases for affinity rules is performance considerations when certain resource-intensive ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required