Creating a group of dedicated hosts
Written by
Updated at February 12, 2025
You can create a group of dedicated hosts solely for your VMs in Yandex Cloud.
By default, a cloud has a zero quota for using dedicated hosts. To change the quota
To create a group of dedicated hosts:
CLI
API
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder through the --folder-name
or --folder-id
parameter.
-
View a list of available dedicated host types:
yc compute host-type list
Result:
+------------------------------+-------+--------------+-------+---------------+ | ID | CORES | MEMORY | DISKS | DISK SIZE | +------------------------------+-------+--------------+-------+---------------+ ... | intel-6338-c108-m704-n3200x6 | 108 | 755914244096 | 6 | 3198924357632 | +------------------------------+-------+--------------+-------+---------------+
-
Create a group of dedicated hosts of the selected type. A group may contain one or more hosts.
yc compute host-group create \ --fixed-size <number_of_dedicated_hosts_in_group> \ --type <dedicated_host_type> \ --zone <availability_zone>
Where:
--fixed-size
: Number of dedicated hosts in the group.--type
: Type of dedicated hosts.--zone
: Availability zone to place your group in.
Result:
done (6s) id: abcdefg1hi23******** folder_id: m4n56op78mev******** created_at: "2020-10-13T07:36:49Z" zone_id: ru-central1-a status: READY type_id: intel-6230-c66-m454 maintenance_policy: RESTART scale_policy: fixed_scale: size: "2"
- Select the host type using the list REST API method for the HostType resource or the HostTypeService/List gRPC API call.
- Create a group of dedicated hosts using the create REST API method for the HostGroup resource or the HostGroupService/Create gRPC API call.