You can create VM-VM affinity rules to specify whether selected individual virtual machines run on the same host or kept on separate hosts.

Prerequisites

Create the topology.

Procedure

  1. Log in to the VMware Telco Cloud Automation web interface.
  2. Select Network Functions > Catalog and click Onboard.
    The Network Function Catalog page is displayed.
  3. Click the network function on which you want to create affinity rules and select the Rules tab.
  4. To add an affinity rule, click the Add under Affinity Rules.
    1. Add the name of the affinity rule in text box corresponding to Rule Name.
    2. To create affinity among the VDUs, select the VDU from the list.
  5. To add an anti-affinity rule, click the Add under Anti-Affinity Rules.
    1. Add the name of the anti-affinity rule in text box corresponding to Rule Name.
    2. To create an anti-affinity rule among the VDUs, select the VDU from the list.

Results

The affinity and anti-affinity rules are added.

Example

Table 1. Affinity and Anti Affinity Rules
VDU Affinity Rules Anti-Affinity Rules
VDU 1, VDU 2 The deployed VDUs are always kept together on the same ESXi host even for scaled-out instances. The deployed VDUs are always kept apart on different ESXi hosts. for scaled-out instances, an anti-affinity rule is created for every permutation and combination.
VDU 1 All the scaled VDU instances of VDU 1 are kept together on the same ESXi host. All the scaled VDU instances of VDU 1 are kept apart on different ESXi hosts and only one anti-affinity rule is created.