VMware vSphere

 View Only
  • 1.  Affinity rules - vmware

    Posted Oct 17, 2024 10:23 AM

    Hello,

    Please excuse the question as I am new to this.

    DRS is active. I have 11 hypervisors.

    I create an affinity rules that says 6 VMs are not to be hosted on the same hypervisors.

    e.g. server1, server2, server 3, server4, server5, server 6

    After the rule is enabled. What happens in the following situations:

    1. All 6 servers are already hosted on different hypervisors
      1. I imagine nothing happens since the environment already supports the restrictions (i.e. there is no automatic vmotion of any of the servers)
    2. Server1 and Server2 are hosted on the same hypervisor
      1. I assume one of the VM's would be vmotioned to a hypervisor that does not have one of the other remaining  4 servers 
        1. if 2.1 is correct, how does the system determine which VM to vmotion? Say server1 is 30 cores with 64 GB ram, and server 2 is 4 cores with 8GB of RAM. Ideally I would prefer to have vmotion with server2, the weaker server (based on specs

    Thanks for all your help and guidance.

    Best,

    Mark



  • 2.  RE: Affinity rules - vmware

    Posted Oct 21, 2024 04:43 PM

     the following scenarios can occur according to Tiyaro DeepQuery:

    1. All 6 servers are already hosted on different hypervisors: If the 6 servers are already hosted on different hypervisors, the affinity rule is already satisfied, and there is no need for any VMotion or movement of VMs. The DRS will not perform any automatic migration since the rule is not violated.

    2. Server1 and Server2 are hosted on the same hypervisor: If two or more VMs violate this anti-affinity rule by being hosted on the same hypervisor, DRS will attempt to migrate one of the VMs to satisfy the rule. Typically, DRS makes decisions based on resource optimization and load balancing across the cluster, considering factors like CPU and memory usage along with the existing load on the hosts.