此内容没有您所选择的语言版本。

6.12. Affinity Labels


You can create and modify affinity labels in the Administration Portal.

Affinity labels are used to set hard (Enforced) positive affinity between virtual machines and hosts. See the Affinity Groups section for more information about affinity hardness and polarity.

Labels function identically to a hard positive affinity group, but simplify configuration in certain use cases. For example, if you have virtual machines that require specific host hardware, you can use affinity labels to ensure that those virtual machines run on the required hosts. If you use software that is license-limited to a certain number of physical machines, you can use affinity labels to ensure that virtual machines running that software are limited to the required physical hosts.

Warning

Affinity labels are a subset of affinity groups and can conflict with them. If there is a conflict, the virtual machine will not start.

6.12.1. Creating an Affinity Label

You can create affinity labels from the details view of a virtual machine, host, or cluster. This procedure uses the cluster details view.

Creating an Affinity Label

  1. Click Compute Clusters and select the appropriate cluster.
  2. Click the cluster’s name to go to the details view.
  3. Click the Affinity Labels tab.
  4. Click New.
  5. Enter a Name for the affinity label.
  6. Use the drop-down lists to select the virtual machines and hosts to be associated with the label. Use the + button to add additional virtual machines and hosts.
  7. Click OK.

6.12.2. Editing an Affinity Label

You can edit affinity labels from the details view of a virtual machine, host, or cluster. This procedure uses the cluster details view.

Editing an Affinity Label

  1. Click Compute Clusters and select the appropriate cluster.
  2. Click the cluster’s name to go to the details view.
  3. Click the Affinity Labels tab.
  4. Select the label you want to edit.
  5. Click Edit.
  6. Use the + and - buttons to add or remove virtual machines and hosts to or from the affinity label.
  7. Click OK.

6.12.3. Removing an Affinity Label

You can remove affinity labels only from the details view of a cluster.

Removing an Affinity Label

  1. Click Compute Clusters and select the appropriate cluster.
  2. Click the cluster’s name to go to the details view.
  3. Click the Affinity Labels tab.
  4. Select the label you want to remove.
  5. Click Edit.
  6. Use the - buttons to remove all virtual machines and hosts from the label.
  7. Click OK.
  8. Click Delete.
  9. Click OK.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.