Skip to content

Commit 468450c

Browse files
authored
Updating docs for host affinity (#193)
1 parent 5372008 commit 468450c

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

source/adminguide/virtual_machines.rst

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,9 @@ There are several ways:
597597
service offering using those tags and offer it to the user.
598598

599599
- Affinity groups. By defining affinity groups and assigning VMs to
600-
them, the user or administrator can influence (but not dictate) which
601-
VMs should run on separate hosts. This feature is to let users
602-
specify that certain VMs won't be on the same host.
600+
them, the user or administrator can influence (but not dictate) whether
601+
VMs should run on separate hosts or on the same host. This feature is to
602+
let users specify whether certain VMs will or will not be on the same host.
603603

604604
- CloudStack also provides a pluggable interface for adding new
605605
allocators. These custom allocators can provide any policy the
@@ -611,11 +611,15 @@ Affinity Groups
611611

612612
By defining affinity groups and assigning VMs to them, the user or
613613
administrator can influence (but not dictate) which VMs should run on
614-
separate hosts. This feature is to let users specify that VMs with the
614+
either the same or separate hosts. This feature is to let users specify
615+
the affinity groups to which a VM can belong. VMs with the
615616
same “host anti-affinity” type won’t be on the same host. This serves to
616617
increase fault tolerance. If a host fails, another VM offering the same
617618
service (for example, hosting the user's website) is still up and
618619
running on another host.
620+
It also lets the user specify that VMs with the same "host affinity" type
621+
run on the same host. This can be useful in ensuring connectivity and minimum
622+
latency in between guest VMs.
619623

620624
The scope of an affinity group is per user account.
621625

@@ -637,12 +641,11 @@ To add an affinity group:
637641
- Description. Any desired text to tell more about the purpose of
638642
the group.
639643

640-
- Type. The only supported type shipped with CloudStack is Host
641-
Anti-Affinity. This indicates that the VMs in this group should
642-
avoid being placed on the same host with each other. If you see
643-
other types in this list, it means that your installation of
644-
CloudStack has been extended with customized affinity group
645-
plugins.
644+
- Type. CloudStack supports two types of affinity groups. "Host
645+
Anti-Affinity" and "Host Affinity". "Host Anti-Affinity" indicates
646+
that the VMs in this group should avoid being placed on the same
647+
host with each other. "Host Affinity" on the other hand indicates
648+
that VMs in this group should be placed on the same host.
646649

647650

648651
Assign a New VM to an Affinity Group

0 commit comments

Comments
 (0)