Affinity and Anti-Affinity Rules on VMware vCloud Director

Affinity and Anti-Affinity Rules on VMware vCloud Director

ESC supports affinity and anti-affinity placement policy for vCD. However, it does not support zone-host placement policy.

The affinity and anti-affinity implementation in ESC depends on the affinity rule (VM-VM affinity rule in vSphere) in the vCloud Director. The example below shows affinity and anti-affinity rules in the vCD VNF deployment datamodel.

<deployments>
        <deployment>
          <!-- vApp instance name -->
          <name>d1</name>
          <policies>
            <placement_group>
              <name>d1-placement-affinity-1</name>
              <type>affinity</type>
              <enforcement>strict</enforcement>
              <vm_group>g1</vm_group>
              <vm_group>g2</vm_group>
            </placement_group>
          </policies>
         ….….….…...
         ….….….….…..
       </deployment>
    </deployments>

For vCD deployment, see Deploying Virtual Network Functions on VMware vCloud Director (vCD).