Create a placement group
Create a placement group
A placement group can be created:
- at cloud server creation — 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 tab Accommodation groups.
-
Click Create a group.
-
Enter the name of the group.
-
Select an accommodation policy:
- preferably on different hosts (soft-anti-affinity) — the system will try to place servers on different hosts. If there is no suitable host when creating a server, it will be created on the same host;
- must be on different hosts (anti-affinity) — servers in the group must be on different hosts. If we cannot find a suitable host, the server will not be created.
-
Click Create a group.
-
Create a placement group:
openstack server group create \
--policy <policy> \
--os-compute-api-version 2.15 \
<placement_group_name>Specify:
<policy>
— accommodation policy:anti-affinity
,soft-anti-affinity
;<placement_group_name>
— group name.