Configure instance affinity rules

This is a guide on how to make sure the a group of instances do not run on the same compute node. For example if you want to run a cluster of instances you do not want multiple instances to fail if a compute node fails.

First you create an anti affinity group.

nova server-group-create --policy anti-affinity cluster-group-1

 

And then add the instance to the group when you deploy it.

nova boot --image IMAGE_ID --flavor m1.small --hint group=SERVER_GROUP_UUID cluster-node-1

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.