You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DRS doesn't take into account affinity rules #12473
It appears DRS doesn't take into account affinity rules when rebalancing. I've got 5 VMs in a non-strict host anti-affinity group (I do non-strict since I have 5 total hosts, and if I take one down for maintenance its ok to co-locate during that duration).
I manually put one VM on each host, then run DRS and I can see it tries to move those VMs in the anti-affinity group so they're co-located on the same host even though there are other eligible VMs that can be moved to rebalance instead.
@bhouse-nexthop DRS is affinity aware. But since you are using non-strict affinity groups, it allows the live migration.
For non-strict affinity groups you will still be able to live migrate the VMs to any host because the affinity group is non-strict. So, this is the intended behavior as of now.
Activity
vishesh92 commentedon Jan 21, 2026
@bhouse-nexthop DRS is affinity aware. But since you are using
non-strictaffinity groups, it allows the live migration.For
non-strictaffinity groups you will still be able to live migrate the VMs to any host because the affinity group isnon-strict. So, this is the intended behavior as of now.