With vSphere 6.5, we added a number of ‘Additional Options’ to DRS. These additional options uplevel some of the “Advanced Options” (which we don’t talk about much) that we’ve found are valuable to our customers. The Three that we added this release were:
- VM Distribution
- Memory Metric for Load Balancing
- CPU Over-Commitment
You can read more about the purposes HERE.
A few days ago I received a tweet:
— Kurt Bohman (@kurtbohman) May 8, 2017
This was related to the additional options. I decided at that time that since I hadn’t blogged about how to set advanced options, I figured I probably should!
To set these additional options, We’ll use the following properties:
We can set these advanced options with the following code:
$Cluster = Get-Cluster <cluster name>
$Cluster | New-AdvancedSetting -Name LimitVMsPerESXHostPercent -Value 0 -Type ClusterDRS
$Cluster | New-AdvancedSetting -Name PercentIdleMBInMemDemand -Value 100 -Type ClusterDRS
$Cluster | New-AdvancedSetting -Name MaxVcpusPerClusterPct -Value 500 -Type ClusterDRS
After running the commands above, you can refresh your browser and notice that the cluster settings have updated.
**Note: If you want the checkboxes to be checked for VM Distribution and/or Memory Metric for Load Balancing, you will have to use the exact values I placed in the script.
For CPU-Overcommitment the options are between 0-500 (where 500 = 5:1 ratio)