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 containing the instance group you need. - 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 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.
-
See the description of the CLI command for updating an instance group:
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
ID
of the instance group in question. -
Specify the name and description you need in the YAML file that was used to create the group, e.g.,
specification.yaml
. If this YAML file is missing, get info on 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 initiate instance group updating.
To change the name and description of an instance group, use the update REST API method for the InstanceGroup resource or the InstanceGroupService/Update gRPC API call.
To request a list of available instance groups, use the listInstances REST API method or the InstanceGroupService/ListInstances gRPC API call.
Changing computing resources
After creating an instance group, you can change:
- Guaranteed vCPU share.
- 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 computing resources of an instance group:
- In the management console
, open the folder containing the instance group you need. - 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 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.
-
See the description of the CLI command for updating an instance group:
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
ID
of the instance group in question. -
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 this YAML file is missing, get info on 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 initiate instance group updating.
To change computing resources, use the update REST API method for the InstanceGroup resource or the InstanceGroupService/Update gRPC API call.
To request a 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 containing the instance group you need. - 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 and file storages, specify the disk size.
- Click Save.
- Click Save on the Changing an instance group page.
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.
-
See the description of the CLI command for updating an instance group:
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
ID
of the instance group in question. -
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 this YAML file is missing, get info on 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 initiate instance group updating.
To change the disk size, use the update REST API method for the InstanceGroup resource or the InstanceGroupService/Update gRPC API call.
To request a list of available instance groups, use the listInstances REST API method or the InstanceGroupService/ListInstances gRPC API call.