Updating 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:
- In the management console
, open the folder the instance group is in. - Select Compute Cloud.
- In the left-hand panel, select
Instance groups. - Select the group to update.
- In the top-right corner of the page, click Edit.
- Fill in the Name and Description fields.
- Click Save.
If you do not 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
Result:
+----------------------+-----------------------+------+ | ID | NAME | SIZE | +----------------------+-----------------------+------+ | amc65sbgfqeq******** | first-instance-group | 2 | +----------------------+-----------------------+------+
-
Select the
ID
of the instance group you need. -
Specify the name and description you need in the YAML file that was used to create the group, e.g.,
specification.yaml
. If the YAML file was not saved, get information about the instance group and create a new file. For more information, see Creating a fixed-size instance group. -
Update the instance group in the default folder:
yc compute instance-group update --id <instance_group_ID> --file specification.yaml
Instance Groups will launch the instance group update process.
You can change the name and description of an instance group by using the update REST API method for the InstanceGroup resource or the InstanceGroupService/Update gRPC API call.
To request the list of available instance groups, use the listInstances REST API method or the InstanceGroupService/ListInstances gRPC API call.
Updating computing resources
After creating an instance group, you can change:
- Guaranteed vCPU share.
- Number of vCPUs and the 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:
- In the management console
, open the folder the instance group is in. - Select Compute Cloud.
- In the left-hand panel, select
Instance groups. - Select the group to update.
- In the top-right corner of the page, click Edit.
- Under Instance template:
- Click
in the top-right corner and select Delete to delete the current instance template. - Click Define to create a new template with required instance parameters.
- Click Save.
- Click
- Click Save on the Changing an instance group page.
If you do not 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
Result:
+----------------------+-----------------------+------+ | ID | NAME | SIZE | +----------------------+-----------------------+------+ | amc65sbgfqeq******** | first-instance-group | 2 | +----------------------+-----------------------+------+
-
Select the
ID
of the instance group you need. -
Specify the required instance parameters in the
resources_spec
key in the YAML file that was used to create the group, e.g.,specification.yaml
. If the YAML file was not saved, get information about the instance group and create a new file. For more information, see Creating a fixed-size instance group. -
Update the instance group in the default folder:
yc compute instance-group update --id <instance_group_ID> --file specification.yaml
Instance Groups will launch the instance group update process.
You can change the computing resources by using the update REST API method for the InstanceGroup resource or the InstanceGroupService/Update gRPC API call.
To request the list of available instance groups, use the listInstances REST API method or the InstanceGroupService/ListInstances gRPC API call.
Increasing the 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:
- In the management console
, open the folder the instance group is in. - Select Compute Cloud.
- In the left-hand panel, select
Instance groups. - Select the group to update.
- In the top-right corner of the page, click Edit.
- In the top-right corner of the Instance template section, click
and select Edit. - Under Disks, specify the disk size.
- Click Save.
- Click Save on the Changing an instance group page.
If you do not 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
Result:
+----------------------+-----------------------+------+ | ID | NAME | SIZE | +----------------------+-----------------------+------+ | amc65sbgfqeq******** | first-instance-group | 2 | +----------------------+-----------------------+------+
-
Select the
ID
of the instance group you need. -
Specify the required storage size in the
boot_disk_spec
key in the YAML file that was used to create the group, e.g.,specification.yaml
. If the YAML file was not saved, get information about the instance group and create a new file. For more information, see Creating a fixed-size instance group. -
Update the instance group in the default folder:
yc compute instance-group update --id <instance_group_ID> --file specification.yaml
Instance Groups will launch the instance group update process.
You can change the disk size by using the update REST API method for the InstanceGroup resource or the InstanceGroupService/Update gRPC API call.
To request the list of available instance groups, use the listInstances REST API method or the InstanceGroupService/ListInstances gRPC API call.