Hello,
I understand the concept of affinity and anti-affinity rules. However, I have a situation and wondering if it is possible to implement and how it can be done.
I have a cluster of 15 ESXi servers.
I have 3 database (db) linux virtual machines, db01, db02, db03 and 3 windows active directory ad) virtual machines, ad01, ad02, ad03
I want the 3 db machine machines to be on separate hosts, and the 3 ad machines to be on separate hosts.
I create a linux-db-anti-affinity rule on VM/Host rules for the db virtual machines, and repeat windows-ad-anti-affinity for the 3 ad virtual machines.
Fairly straight forward.
Now I would like to make groups of servers where each group cannot be hosted on the same host.
For instance, the situation I would like to set is that none of the 3 DB machines, say group-of-DB ( with members db01, db02, db03) can be hosted on a host that has any of ad virtual machines, say group-of AD (with members ad01, ad02, ad03) and vice versa.
Is it possible to create two group of hosts and set that any server within the first group (in this case db) cannot be on a host where a server in the second group (in this case ad) resides?
Basically, anti-affinity rule preventing any server in 3 DB group (db01, db02, db03) cannot reside on a host that has servers from second group, 3 AD server (ad01, ad02, ad03)?
Is this at all possible?
If so, how can one implement or how can this be achieved?
Thanks,
Mark