You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "bhouse-nexthop (via GitHub)" <gi...@apache.org> on 2026/01/22 08:20:54 UTC

Re: [D] Make DRS take into account affinity rules in an intuitive way [cloudstack]

GitHub user bhouse-nexthop edited a discussion: Make DRS take into account affinity rules in an intuitive way

### problem

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.

### versions

4.22.0.0 on Ubuntu 24.04 with KVM

### The steps to reproduce the bug

Steps in problem description


### What to do about it?

DRS should be affinity-aware

GitHub link: https://github.com/apache/cloudstack/discussions/12485

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org