Affichage des articles dont le libellé est affinity. Afficher tous les articles
Affichage des articles dont le libellé est affinity. Afficher tous les articles
DRS affinity rules are used in DRS clusters to control the placement of virtual machines. Three types of rules exist:

affinity rules – DRS will try to keep certain VMs together on the same host. These rules are often used in multi-virtual machine systems to localize the traffic between virtual machines.anti-affinity rules – DRS will try to keep certain VMs are not on the same host. These rules are often used to keep the VMs separated for availability reasons.VM to host rules – specify whether VMs can or can’t be run on a host. They can be preferential or required. These rules are used in conjunction with DRS groups for ease of administration. A DRS group can either consist of one or more VMs or one or more ESXi hosts.NOTE – if two rules are in conflict with each other, they will no be enabled.

DRS affinity rules are used in DRS clusters to keep certain VMs together on the same host. You can create them using vSphere Web Client:

1. Select your cluster from the inventory, go to Manage > Settings > DRS Rules, and click the Add button:

2. The Create DRS Rule window opens. Type the name for the rule and choose the rule type. In this example, we will create a rule that will keep two VMs on the same host. Click Add to add the VMs:

add drs rules vms

3. Select the VMs you would like to run on the same host and click OK:

add drs rules same host

4. Click OK to create the rule.

To test the rule, select your DRS cluster from the inventory and go to Monitor > vSphere DRS. Because the VMs we’ve selected during the rule creation are running on different ESXi hosts, DRS recommends to run them on the same host:

drs same host recommendation