Affinity Policy

Affinity Policy

The affinity policy is designed for senlin to leverage the server group API in nova. Using this policy, you can specify whether the nodes in a cluster should be collocated on the same physical machine (aka. “affinity”) or they should be spread onto as many physical machines as possible (aka. “anti-affinity”).

Currently, this policy can be used on nova server clusters only.

Properties

The affinity policy has the following properties:

  • servergroup.name: An optional string that will be used as the name of server group to be created.
  • servergroup.policies: A string indicating the policy to be used for the server group.
  • availability_zone: Optional string specifying the availability zone for the nodes to launch from.
  • enable_drs_extension: A boolean indicating whether VMware vSphere extension should be enabled.

Since the os.nova.server profile type may contain scheduler_hints which has server group specified, the affinity policy will behave differently based on different settings.

<TBC>

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.