Best way to put 'anti-affinity rules'

prxd44

New Member
Apr 28, 2016
2
0
1
40
Hello,

I actually have a 3 nodes cluster, with 2 vm (load balancers : lb1 and lb2).

My request is: How specify that my two vm (lb1 and lb2) should not be placed on the same node at any instant after reboot (via HA) ?

I suppose i can proceed by the following way but i'm not sure this is the best way :
1) Adding a 4th node to my cluster.
2) Form 2 groups (node 1+node2 / node3+node4).
3) Putting lb1 in group1 and lb2 in group2.

Thanks in advance for shed light me on about this point.