To ensure that affinity and anti-affinity rules are strictly applied, set an advanced option for vSphere DRS. Setting the advanced option ForceAffinePoweron to 1 will enable strict enforcement of the affinity and anti-affinity rules that you created.

1

In the vSphere Client, right-click the cluster in the inventory and select Edit Settings.

2

In the left pane of the Cluster Settings dialog box, select vSphere DRS.

3

Click Advanced Options.

4

In the Option column, type ForceAffinePoweron.

5

In the Value column, type 1.

6

Click OK.