Anti-affinity Group

Anti-affinity group is a simple scheduler policy for servers in anti-affinity groups.

Anti-affinity group is a simple scheduler policy for servers in an unaffinity group, which distributes the newly created servers belonging to the unaffinity group on different hosts according to the policy in the unaffinity group to achieve high availability of business. It is generally used in a scenario where the various nodes in a system are required to be deployed on different hosts.

Entry: Click “Compute/ComputeAnti-Affinity Groups” menu item on the left side of the cloud management platform to enter the Anti-affinity Groups page.

Create unaffinity group

This function is used to create anti-affinity groups.

  1. On the Anti-affinity group page, click the “New” button at the top of the list to bring up the Create Anti-affinity group dialog box.
  2. Set the following parameters.
    • Specify Project: Select the item to which the unaffinity group belongs.
    • Name: The name of the unaffinity group.
    • Strategy: Including mandatory and Not mandatory.
      • Forced: Forces servers belonging to the same unaffinity group to be distributed on different hosts according to granularity. The creation of new Servers fails when the number of Servers on the host does not exceed the granularity.
      • Not mandatory means that Servers belonging to the same unaffinity group are distributed across different hosts according to the granularity as much as possible, and can be created when the number of Servers on the host exceeds the granularity.
    • Granularity: The number of servers in the unaffinity group that can exist on the same host.
  3. Click the “OK” button to create the unaffinity group.

Associated Server

This feature supports adding created servers to the unaffinity group, and only supports selecting servers that are in the same project as the unaffinity group. The host to which the created server belongs will not change after it is added to the unaffinity group. Bind host operation is not supported when the unaffinity group is disabled.

  1. Click the “Associate Servers” button in the right-hand column of the unaffinity group to bring up the Bind Hosts dialog box.
  2. Select the server you want to bind and click the “OK” button.

Enable

This feature is used to enable anti-affinity groups in the “disabled” state. Only if the unaffinity group is in the “enabled” state can it be selected by the user.

  1. Click the “Enable” button on the right action bar of the disabled unaffinity group to bring up the action confirmation dialog.
  2. Click the “OK” button to enable the unaffinity group.

Disable

This function is used to disable the unaffinity group in the “Enabled” state.

  1. Click the “Disable” button in the action bar to the right of the enabled unaffinity group to bring up the action confirmation dialog.
  2. Click the “OK” button to disable the unaffinity group.

Delete Anti-affinity Group

This function is used to delete the unaffinity group. The unaffinity group can be deleted only when the number of bound hosts is 0.

Delete

  1. On the Anti-affinity group page, click the “More” button in the Anti-affinity group action bar, and select the “Delete” menu item in the drop-down menu to bring up the action confirmation dialog.
  2. Click the “OK” button to complete the operation.

Batch Delete

  1. Check one or more anti-affinity groups in the list of anti-affinity groups, click the “Delete” button at the top of the list, and the operation confirmation dialog box will pop up.
  2. Click the “OK” button to complete the operation.

View Anti-affinity Group Details

This function is used to view the unaffinity group details, the number of bound servers, operation logs, and other information.

  1. Click the Anti-affinity group name item to enter the Anti-affinity group details page.
  2. The menu item at the top of the details page supports managing the unaffinity group.
  3. View the basic information of the unaffinity group, including Cloud ID, ID, name, status, domain, project, enabled status, number of bound hosts, policy, granularity, created at, updated at, notes, etc.

View the associated servers of the unaffinity group

This function is used to view the information of servers that are joined to the unaffinity group.

  1. On the Anti-affinity group details page, click the Associated Hosts tab to enter the Associated Hosts page.
  2. View the information of the servers bound to the unaffinity group, including name, system, status, configuration, association time, host, and support for unbinding server operations.
    • Unbind: Click the Unbind button in the operation column on the right side of the specified server, and click the “OK” button in the pop-up operation confirmation dialog box.

View unaffinity group operation log information

This function is used to view the operation log information of the unaffinity group.

  1. On the Anti-affinity group details page, click the Operation Log tab to enter the Operation Log page.
    • Load More Logs: In the Operation Logs page, the list shows 20 operation logs by default. To view more operation logs, please click the “Load More” button to get more logs.
    • View Log Details: Click the “View” button on the right column of the operation log to view the log details. Copy details are supported.
    • View logs of specified time period: If you want to view the operation logs of a certain time period, set the specific date in the start date and end date at the top right of the list to query the log information of the specified time period.
    • Export logs: Currently, only the logs displayed on this page are supported to be exported. Click the upper-right corner of icon, set the export data column in the pop-up export data dialog, and click the “OK” button to export the logs.