vSphere Distributed Resource Scheduler (DRS) is a feature of vSphere that automatically balances resources among the hosts in a cluster. To configure DRS, you need to do the following:
Create a cluster: In the vSphere Web Client, navigate to the datacenter or folder that contains the hosts you want to include in the cluster. Right-click the datacenter or folder and select “New Cluster.”
Enable DRS: In the “Cluster Settings” section, select the “Edit” button. In the “DRS” tab, select “Enabled” and set the “Automation level” to “Fully Automated.”
Configure DRS rules: In the “DRS Rules” section, you can configure rules to ensure certain virtual machines are placed on specific hosts or in specific resource pools.
Configure DRS affinity/anti-affinity rules: In the “DRS Rules” section, you can configure Affinity/Anti-affinity rules to ensure certain virtual machines are placed on specific hosts or in specific resource pools.
Configure DRS Advanced options: In the “DRS Advanced options” section, you can configure the migration threshold, host isolation response and more.
Apply the configuration: Click OK to apply the configuration and close the dialog box.
Keep in mind that you will need the appropriate permissions to configure DRS, and that you should test your configuration before deploying it in a production environment.