Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Compute Cloud
  • Getting started
    • Overview
    • Creating a Linux VM
    • Creating a Windows VM
    • Creating instance groups
  • Step-by-step instructions
    • All instructions
    • Creating VMs
      • Creating a Linux VM
      • Creating a Windows VM
      • Creating a VM from a set of disks
      • Create a VM with disks restored from snapshots
      • Creating a VM from a custom image
      • Creating a preemptible VM
      • Creating a VM with a GPU
    • DSVM
      • Overview
      • Creating a VM from a public DSVM image
    • Placement groups
      • Creating a placement group
      • Deleting a placement group
      • Creating a VM instance in a placement group
      • Adding a VM to a placement group
      • Removing a VM instance from a placement group
    • Images with pre-installed software
      • Creating a VM from a public image
      • Configuring software
      • Working with a VM based on a public image
      • Getting a list of public images
    • Getting information about a VM
      • Getting information about a VM
      • Viewing serial port output
    • Managing VMs
      • Stopping and starting a VM
      • Attaching a disk to a VM
      • Detaching a disk from a VM
      • Moving a VM to a different availability zone
      • Making a VM's public IP address static
      • Updating a VM
      • Changing VM computing resources
      • Deleting a VM
    • Working on VMs
      • Connecting to a VM via SSH
      • Connecting to a VM via RDP
      • Working with Yandex.Cloud from inside a VM
      • Installing NVIDIA drivers
    • Creating new disks
      • Creating an empty disk
    • Disk management
      • Creating a disk snapshot
      • Updating a disk
      • Deleting a disk
      • Deleting a disk snapshot
    • Creating new images
      • Uploading your image
    • Managing images
      • Deleting a disk image
    • Managing the serial console
      • Getting started
      • Connecting to a serial console via SSH
      • Connecting to a serial console via CLI
      • Start your terminal in the Windows SAC
      • Disabling access to the serial console
    • Creating instance groups
      • Creating a fixed-size instance group
      • Creating a fixed-size instance group with a load balancer
      • Creating an automatically scaled instance group
      • Creating an instance group from Container Optimized Image
    • Getting information about instance groups
      • Getting a list of groups
      • Getting information about a group
      • Getting a list of instances in a group
    • Managing instance groups
      • Update a group
      • Configure application health check on the VM
      • Update a group
        • Incremental update
        • Updating without downtime
      • Stop a group
      • Start a group
      • Delete a group
    • Dedicated hosts
      • Creating a VM in a group of dedicated hosts
      • Creating a VM on a dedicated host
  • Yandex Container Optimized Solutions
  • Scenarios
    • Configuring NTP time synchronization
    • Running instance groups with auto scaling
  • Concepts
    • Relationship between resources
    • Virtual machines
      • Overview
      • Platforms
      • vCPU performance levels
      • Graphics accelerators (GPUs)
      • Preemptible VMs
      • Network on a VM
      • Live migration
      • Placement groups
      • Statuses
      • Metadata
    • Disks
      • Overview
      • Disk snapshots
    • Images
    • Instance groups
      • Overview
      • Access
      • Instance template
      • Variables in an instance template
      • Policies
        • Overview
        • Allocation policy
        • Deployment policy
        • Scaling policy
      • Scaling types
      • Auto-healing
      • Update
        • Overview
        • Allocating instances across zones
        • Deployment algorithm
        • Rules for updating instance groups
      • Statuses
    • Dedicated host
    • Backups
    • Quotas and limits
  • Access management
  • Pricing policy
    • Current pricing policy
    • Archive
      • Before January 1, 2019
      • From January 1 to March 1, 2019
      • From March 1 to May 1, 2019
  • Compute API reference
    • Authentication in the API
    • gRPC
      • Overview
      • DiskPlacementGroupService
      • DiskService
      • DiskTypeService
      • HostGroupService
      • HostTypeService
      • ImageService
      • InstanceService
      • PlacementGroupService
      • SnapshotService
      • ZoneService
      • InstanceGroupService
      • OperationService
    • REST
      • Overview
      • Disk
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • update
      • DiskPlacementGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listDisks
        • listOperations
        • update
      • DiskType
        • Overview
        • get
        • list
      • HostGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listHosts
        • listInstances
        • listOperations
        • update
      • HostType
        • Overview
        • get
        • list
      • Image
        • Overview
        • create
        • delete
        • get
        • getLatestByFamily
        • list
        • listOperations
        • update
      • Instance
        • Overview
        • addOneToOneNat
        • attachDisk
        • create
        • delete
        • detachDisk
        • get
        • getSerialPortOutput
        • list
        • listOperations
        • removeOneToOneNat
        • restart
        • start
        • stop
        • update
        • updateMetadata
        • updateNetworkInterface
      • PlacementGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listInstances
        • listOperations
        • update
      • Snapshot
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • update
      • Zone
        • Overview
        • get
        • list
      • Operation
        • Overview
        • get
      • InstanceGroup
        • Overview
        • createFromYaml
        • update
        • list
        • get
        • delete
        • start
        • stop
        • create
        • listAccessBindings
        • setAccessBindings
        • updateFromYaml
        • listLogRecords
        • listInstances
        • updateAccessBindings
        • listOperations
  • Questions and answers
    • General questions
    • Virtual machines
    • Disks and snapshots
    • Licensing
    • All questions on the same page
  1. Step-by-step instructions
  2. Managing instance groups
  3. Update a group

Update an instance group

  • Changing the name and description
  • To change computing resources
  • Increase disk size

After creating an instance group, you can:

  • Change its name and description.
  • Change its computing resources.
  • Increase the disk size.

Changing the name and description

To change the name and description of an instance group:

Management console
CLI
API
  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 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.

  1. View a description of the update group command in the CLI:

    $ 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 group ID or NAME (for example, first-instance-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-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:

Management console
CLI
API
  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 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.

  1. View a description of the update group command in the CLI:

    $ 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 group ID or NAME (for example, first-instance-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-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:

Management console
CLI
API
  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 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.

  1. View a description of the update group command in the CLI:

    $ 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 group ID or NAME (for example, first-instance-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-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.

In this article:
  • Changing the name and description
  • To change computing resources
  • Increase disk size
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC