Configuring a self affinity

About self affinity

A self affinity determines the preference for one instance of a process to run on the same node as any other instance of the process. The self affinity setting does not take effect for a process that has only one instance.

Procedure

  1. Enter system view.

    system-view

  2. Enter placement process view.

    • Enter default placement process view.

    • placement program default

    • Enter specified placement process view.

    • placement program { program-name [ instance instance-name ]

    Settings in default placement process view take effect for all processes. Settings in placement process view take effect only for the specified process.

  3. Configure a self affinity.

    affinity self { attract strength | repulse strength | default | none }

    By default, no self affinity is set.