NTTLimitedRD / plumbery

Cloud automation at Dimension Data with Apache Libcloud
Apache License 2.0
14 stars 9 forks source link

anti-affinity directive #29

Open bernard357 opened 8 years ago

bernard357 commented 8 years ago

there is a requirement while deploying clusters of nodes to use anti-affinity so that we can ensure that nodes are spread over multiple hosts

bernard357 commented 8 years ago

not sure about the right way to use anti-affinity, either at blueprint level or at node level

at the blueprint level, this would give the following:

blueprints:
  - cluster-blueprint:
      anti-affinity:
          - server1 server2
      server1:
          ...
      server2:  
          ...

at the node level, this would be expressed like this:

blueprints:
  - cluster-blueprint:
      server1:
          ...
      server2:
          anti-affinity: server1
          ...

what do you think?

mingsheng36 commented 8 years ago

Cluster level looks much more clearer to me

bernard357 commented 7 years ago

Thanks @mingsheng36 for feed-back. Implementation of this has a dependency to new class directive to be created as per #38