Affinity Policies Help | Nutanix Community
Skip to main content
Solved

Affinity Policies Help


In the recent version of Prism Central, I am no longer able to configure per-VM affinity rules.  I now have to create global affinity policies based on categories.  I can see how this is helpful, but it also add a lot of complexity for basic affinity situations like this:

I have two VMs dns1 and dns2 and a four host cluster.  The two dns servers should never live on the same host.  Super easy to do the old way.  But how do you do it this way?  Would I create a category called `DNS` with `primary` and `secondary` as values?  Then create one policy for primary that has host1 and host2 and create another for secondary with host3 and host4?

What about a three-vm cluster?  How would you ensure they balance onto separate hosts?

Best answer by StuB

Hi @jamiefki - This would actually be better done as an anti-affinity rule via the CLI (assuming you are AHV)?  Otherwise known in the virtualisation world as a keep-apart rule:

AHV 6.1 - Configuring VM-VM Anti-Affinity Policy (nutanix.com)

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

StuB
Forum|alt.badge.img+1
  • Trailblazer
  • 19 replies
  • Answer
  • June 22, 2022

Hi @jamiefki - This would actually be better done as an anti-affinity rule via the CLI (assuming you are AHV)?  Otherwise known in the virtualisation world as a keep-apart rule:

AHV 6.1 - Configuring VM-VM Anti-Affinity Policy (nutanix.com)


  • Author
  • Voyager
  • 2 replies
  • June 22, 2022

Thanks for the advice @StuB .  I’ll check this out.