Affinity Rules govern the hosting of the VMs on a host.
A VM-VM affinity rule specifies whether selected individual virtual machines run on the same host or kept on separate hosts. This type of rule is used to create affinity or anti-affinity between individual virtual machines that you select.
An affinity rule ensures that the specified virtual machines are placed together on the same host. An anti-affinity rule ensures that the specified virtual machines do not share the host. You can create an anti-affinity rule to guarantee that certain virtual machines are always on different physical hosts. This way, not all virtual machines are at risk when one of the hosts encounters an issue.