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:

  1. Open the folder page in the management console.
  2. Select Yandex Compute Cloud.
  3. On the Virtual machines page, go to the Instance groups tab.
  4. Click on the name of the group you want to update.
  5. Click Change in the upper-right corner of the page.
  6. Enter the appropriate name and description for the group.
  7. Click Save.

If you don't have the Yandex.Cloud command line interface yet, install 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 flag.

  1. See the description of the CLI's update group command:

    $ yc compute instance-group update --help
    
  2. 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.
  3. Select the ID or NAME of the group (for example, first-fixed-group).

  4. 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.

  5. Update the instance group in the default folder:

    $ yc compute instance-group update --name first-fixed-group --file specification.yaml
    

    Instance Groups starts the operation to update the instance group.

You can change the group name and description using the update method.

To request a list of available groups, use the listInstances method.

To change computing resources

After creating an instance group, you can change:

  • The guaranteed vCPU share.
  • The number of vCPUs and amount of RAM.

To change the computing resources of an instance group:

  1. Open the folder page in the management console.
  2. Select Yandex Compute Cloud.
  3. On the Virtual machines page, go to the Instance groups tab.
  4. Click on the name of the group you want to update.
  5. Click Change in the upper-right corner of the page.
  6. Delete the current instance template and create a new one with the appropriate instance parameters.
  7. Click Save.

If you don't have the Yandex.Cloud command line interface yet, install 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 flag.

  1. See the description of the CLI's update group command:

    $ yc compute instance-group update --help
    
  2. 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.
  3. Select the ID or NAME of the group (for example, first-fixed-group).

  4. 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.

  5. Update the instance group in the default folder:

    $ yc compute instance-group update --name first-fixed-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 listInstances.

Increase disk size

To increase the disk size of an instance group:

  1. Open the folder page in the management console.
  2. Select Yandex Compute Cloud.
  3. On the Virtual machines page, go to the Instance groups tab.
  4. Click on the name of the group you want to update.
  5. Click Change in the upper-right corner of the page.
  6. In the Disks section, specify the disk size:
  7. Click Save.

If you don't have the Yandex.Cloud command line interface yet, install 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 flag.

  1. See the description of the CLI's update group command:

    $ yc compute instance-group update --help
    
  2. 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.
  3. Select the ID or NAME of the group (for example, first-fixed-group).

  4. 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.

  5. Update the instance group in the default folder:

    $ yc compute instance-group update --name first-fixed-group --file specification.yaml
    

    Instance Groups starts the operation to update the instance group.

You can change the disk size using the update method.

To request a list of available groups, use the listInstances method.