Create a placement group
Create a placement group
A placement group can be created:
- when create cloud server — the created server will be automatically added to the group;
- or separately — the cloud server can be added to this group only when the server is created.
- Control panel
- OpenStack CLI
-
In Control Panel, go to Cloud Platform → Servers.
-
Open the Location Groups tab.
-
Click Create Group.
-
Enter the name of the group.
-
Select an accommodation policy:
- preferably on different hosts (soft-anti-affinity) — the system will tend to place servers on different hosts. If there is no suitable host when the server is created, it will be created on the same host;
- must be on different hosts (anti-affinity) — servers in a group must be located on different hosts. If we don't find a suitable host, the server will not be created.
-
Click Create Group.
-
Create a placement group:
openstack --os-compute-api-version 2.15 server group create \
--policy <policy> \
<placement_group_name>Specify:
<policy>
— placement policy:anti-affinity
,soft-anti-affinity
;<placement_group_name>
is the name of the group.