Troubleshooting DRS load balancing issues due to cluster settings and VM overrides - VMware vSphere
search cancel

Troubleshooting DRS load balancing issues due to cluster settings and VM overrides - VMware vSphere

book

Article ID: 398210

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • DRS fails to load-balance virtual machines (VMs) evenly across a cluster. Hosts may exhibit CPU or memory load discrepancies despite DRS being enabled in fully automated mode.
  • That host then experiences 99% CPU and 99% RAM and VMs will not reachable.
  • If the SHOULD RUN Rule is disabled... VMs will be migrated to all of the other ESXi and the cluster is balanced.

Environment

vSphere 8.0

vSphere 7.0

Cause

  • Cluster Advanced Settings: The default PercentIdleMBInMemDemand setting weighs active memory usage higher than consumed memory, leading to skewed host resource demand calculations.
  • VM Override Configurations: Virtual machines with DRS overrides set to "Disabled" or "Manual" prevent DRS from automatically migrating those specific workloads.

Resolution

1. Set PercentIdleMBInMemDemand in the advanced cluster settings to 100

Explanation:

The weight that is given to consumed vs active memory is adjusted by the PercentIdleMBInMemDemand parameter in the advanced cluster settings. It defaults to 25(%) where 0 is only active memory being considered and 100 where only consumed memory is considered. This overrides the preference for the local ESXi host that SHOULD RUN induces

2. Review VM Overrides:
Navigate to VM Overrides in the cluster configuration.
Identify VMs set to "Disabled" or "Manual".
Update the DRS Automation Level to Fully Automated.

 

Additional Information

for further reading see

Load Balancing vSphere Clusters with DRS