Update an instance group
After creating an instance group, you can:
Changing the name and description
To change the name and description of an instance group:
- Open the folder page in the management console.
- Select Yandex Compute Cloud.
- On the Virtual machines page, go to the Instance groups tab.
- Click on the name of the group you want to update.
- Click Change in the upper-right corner of the page.
- Enter the appropriate name and description for the group.
- Click Save.
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
View a description of the update group command in the CLI:
$ yc compute instance-group update --help
-
Get a list of instance groups in the default folder:
$ yc compute instance-group list +----------------------+-----------------------+------+ | ID | NAME | SIZE | +----------------------+-----------------------+------+ | amc65sbgfqeqf00m02sc | first-instance-group | 2 | +----------------------+-----------------------+------+
Fields:
Field Value ID
Group ID. NAME
Group name. SIZE
Group size. -
Select the group
ID
orNAME
(for example,first-instance-group
). -
Specify the name and description in the YAML file that was used to create the group (for example,
specification.yaml
). If the YAML file wasn't saved, get information about the instance group and create a new file. For more information, see Create a fixed-size instance group. -
Update the instance group in the default folder:
$ yc compute instance-group update --name first-instance-group --file specification.yaml
Instance Groups starts the operation to update the instance group.
You can change the group name and description using the method update.
To request a list of available groups, use the method listInstances.
To change computing resources
After creating an instance group, you can change:
- The guaranteed vCPU share.
- The number of vCPUs and amount of RAM.
Warning
If the instance group is stopping or is already stopped, updates are applied only when the group starts again.
To change the computing resources of an instance group:
- Open the folder page in the management console.
- Select Yandex Compute Cloud.
- On the Virtual machines page, go to the Instance groups tab.
- Click on the name of the group you want to update.
- Click Change in the upper-right corner of the page.
- Delete the current instance template and create a new one with the appropriate instance parameters.
- Click Save.
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
View a description of the update group command in the CLI:
$ yc compute instance-group update --help
-
Get a list of instance groups in the default folder:
$ yc compute instance-group list +----------------------+-----------------------+------+ | ID | NAME | SIZE | +----------------------+-----------------------+------+ | amc65sbgfqeqf00m02sc | first-instance-group | 2 | +----------------------+-----------------------+------+
Fields:
Field Value ID
Group ID. NAME
Group name. SIZE
Group size. -
Select the group
ID
orNAME
(for example,first-instance-group
). -
Specify the necessary instance parameters in the
resources_spec
key in the YAML file that was used to create the group (for example,specification.yaml
). If the YAML file wasn't saved, get information about the instance group and create a new file. For more information, see Create a fixed-size instance group. -
Update the instance group in the default folder:
$ yc compute instance-group update --name first-instance-group --file specification.yaml
Instance Groups starts the operation to update the instance group.
You can change the computing resources using the update.
To request a list of available groups, use the method listInstances.
Increase disk size
Warning
If the instance group is stopping or is already stopped, updates are applied only when the group starts again.
To increase the disk size of an instance group:
- Open the folder page in the management console.
- Select Yandex Compute Cloud.
- On the Virtual machines page, go to the Instance groups tab.
- Click on the name of the group you want to update.
- Click Change in the upper-right corner of the page.
- In the Disks section, specify the disk size:
- Click Save.
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
View a description of the update group command in the CLI:
$ yc compute instance-group update --help
-
Get a list of instance groups in the default folder:
$ yc compute instance-group list +----------------------+-----------------------+------+ | ID | NAME | SIZE | +----------------------+-----------------------+------+ | amc65sbgfqeqf00m02sc | first-instance-group | 2 | +----------------------+-----------------------+------+
Fields:
Field Value ID
Group ID. NAME
Group name. SIZE
Group size. -
Select the group
ID
orNAME
(for example,first-instance-group
). -
Specify the required storage size in the
boot_disk_spec
key in the YAML file that was used to create the group (for example,specification.yaml
). If the YAML file wasn't saved, get information about the instance group and create a new file. For more information, see Create a fixed-size instance group. -
Update the instance group in the default folder:
$ yc compute instance-group update --name first-instance-group --file specification.yaml
Instance Groups starts the operation to update the instance group.
You can change the disk size using the update.
To request a list of available groups, use the method listInstances.