Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
© 2022 Yandex.Cloud LLC
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
      • Creating a VM with disks from snapshots
      • Creating a VM from a custom image
      • Creating a VM with a GPU
      • Making a VM preemptible
    • DSVM
      • Overview
      • Creating a VM from a public DSVM image
    • Placement groups
      • Creating a placement group
      • Deleting a placement group
      • Creating a VM in a placement group
      • Adding a VM to a placement group
      • Removing a VM from a placement group
    • Images with pre-installed software
      • Creating a VM from a public image
      • Configuring software
      • Running a VM based on a public image
      • Getting a list of public images
    • Getting information about a VM
      • Getting information about a VM
      • Getting serial port's output
    • Managing VMs
      • Stopping and starting a VM
      • Resetting a VM user password
      • Attaching a disk to a VM
      • Detaching a disk from a VM
      • Moving a VM to a different availability zone
      • Moving a VM to another folder
      • Attaching a public IP address to a VM
      • Detaching a public IP address from a VM
      • 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
      • Connecting to a VM via PowerShell
      • Working with Yandex Cloud from inside a VM
      • Installing NVIDIA drivers
      • Restoring access to a VM
    • Managing the password reset agent
      • Verifying agent operation
      • Installing the agent
      • Deleting the agent
    • Creating new disks
      • Creating an empty disk
      • Creating an empty disk with a large block
      • Creating a non-replicated disk
    • Disk management
      • Creating a disk snapshot
      • Updating a disk
      • Moving a disk to another folder
      • Deleting a disk
      • Deleting a disk snapshot
    • Disk placement groups
      • Creating a disk placement group
      • Removing a disk from a placement group
    • Creating new images
      • Preparing a disk image
      • Uploading your image
      • Creating an image from a disk
      • Creating an image from a snapshot
      • Creating an image from other custom image
    • Managing images
      • Getting a list of images
      • Deleting a disk image
    • File storage
      • Creating file storage
      • Attaching file storage to a VM
      • Detaching file storage from a VM
      • Updating file storage
      • Deleting file storage
    • Managing the serial console
      • Getting started
      • Connecting to a serial console via SSH
      • Connecting to a serial console via CLI
      • Starting your terminal in the Windows serial console (SAC)
      • Disabling access to the serial console
    • Creating instance groups
      • Creating a fixed-size instance group
      • Creating a fixed-size instance group with a network load balancer
      • Creating a fixed-size instance group with an L7 load balancer
      • Creating an automatically scaled instance group
      • Creating an instance group from a Container Optimized Image
      • Creating an instance group based on the YAML specification
    • Getting information about instance groups
      • Getting a list of instance groups
      • Getting information about an instance group
      • Getting a list of instances in a group
    • Managing instance groups
      • Editing an instance group
      • Edit an instance group based on the YAML specification
      • Configuring application health check on the VM
      • Updating a group
        • Incremental update
        • Uninterrupted updates
      • Pausing an instance group
      • Resuming an instance group
      • Stopping an instance group
      • Starting an instance group
      • Deleting an instance group
    • Dedicated hosts
      • Creating a VM in a group of dedicated hosts
      • Creating a VM on a dedicated host
  • Yandex Container Solution
  • Practical guidelines
    • Configuring NTP time synchronization
    • Running instance groups with auto scaling
    • Automatically scaling an instance group for handling messages from a queue
    • Updating an instance group under load
    • Deploying Remote Desktop Gateway
    • Transferring logs from a VM instance to Yandex Cloud Logging
    • Creating a VM backup with Hystax Acura Backup
  • Concepts
    • Relationship between resources
    • Virtual machines
      • Overview
      • Platforms
      • vCPU performance levels
      • Preemptible VMs
      • Network on a VM
      • Software-accelerated network
      • Live migration
      • Placement groups
      • Statuses
      • Metadata
      • Resetting a Windows VM password
    • Graphics accelerators
    • Disks and file storage
      • Overview
      • Disks
      • Disk snapshots
      • Non-replicated disk placement groups
      • File storage
      • Read and write operations
    • Images
    • Instance groups
      • Overview
      • Access
      • YAML specification
      • Instance template
      • Variables in an instance template
      • Policies
        • Overview
        • Allocation policy
        • Deployment policy
        • Scaling policy
      • Scaling types
      • Auto-healing
      • Updating
        • Overview
        • Allocating instances across zones
        • Deployment algorithm
        • Rules for updating virtual machines
        • Changing secondary disks in an instance template
      • Stopping and pausing an instance group
      • 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
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • DiskPlacementGroupService
      • DiskService
      • DiskTypeService
      • FilesystemService
      • HostGroupService
      • HostTypeService
      • ImageService
      • InstanceService
      • PlacementGroupService
      • SnapshotScheduleService
      • SnapshotService
      • ZoneService
      • InstanceGroupService
      • OperationService
    • REST
      • Overview
      • DiskPlacementGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listDisks
        • listOperations
        • update
      • Disk
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • move
        • update
      • DiskType
        • Overview
        • get
        • list
      • Filesystem
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • update
      • 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
        • attachFilesystem
        • create
        • delete
        • detachDisk
        • detachFilesystem
        • get
        • getSerialPortOutput
        • list
        • listOperations
        • move
        • removeOneToOneNat
        • restart
        • start
        • stop
        • update
        • updateMetadata
        • updateNetworkInterface
      • PlacementGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listInstances
        • listOperations
        • update
      • SnapshotSchedule
        • Overview
        • create
        • delete
        • disable
        • enable
        • get
        • list
        • listDisks
        • listOperations
        • listSnapshots
        • update
        • updateDisks
      • Snapshot
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • update
      • Zone
        • Overview
        • get
        • list
      • Operation
        • Overview
        • get
      • InstanceGroup
        • Overview
        • list
        • get
        • listLogRecords
        • updateFromYaml
        • updateAccessBindings
        • pauseProcesses
        • stop
        • start
        • delete
        • listInstances
        • createFromYaml
        • update
        • setAccessBindings
        • listOperations
        • create
        • listAccessBindings
        • resumeProcesses
  • Questions and answers
    • General questions
    • Virtual machines
    • Connection
    • Disks, snapshots, and images
    • Disaster recovery
    • Monitoring
    • Licensing
    • All questions on the same page
  1. Getting started
  2. Creating instance groups

Creating instance groups

Written by
Yandex Cloud
  • Before you begin
  • Create an instance group
  • What's next

Create an instance group using the Instance Groups component in the Yandex Cloud management console.

Before you begin

  1. Log in to or register in the management console. If you aren't registered, go to the management console and follow the instructions.
    1. On the billing page, make sure you linked a billing account and it has the ACTIVE or TRIAL_ACTIVE status. If you don't have a billing account, create one.
  2. If you don't have a folder, create one.

Create an instance group

You can create an automatically scaled group or a group with a fixed number of instances. For more information, see Scaling types.

Alert

When creating instance groups, keep the limits in mind. Not to disrupt the component Instance Groups, do not update or delete manually created resources: target group Network Load Balancer, VMs, and disks. Instead of this, change or delete the entire group.

To create an instance group:

  1. In the management console, select a folder to create your instance group in.

  2. In the list of services, select Compute Cloud.

  3. On the left-hand panel, select Instance groups.

  4. Click Create group.

  5. Under Basic parameters:

    • Enter a name and description of the instance group. Naming requirements:

      • The length can be from 3 to 63 characters.
      • It may contain lowercase Latin letters, numbers, and hyphens.
      • The first character must be a letter. The last character can't be a hyphen.

      Note

      The VM name is used to generate an internal FQDN only once: when creating a VM. If the internal FQDN is important to you, choose an appropriate name for the VM at the creation stage.

    • Select a service account from the list or create a new one. To be able to create, update, and delete group instances, assign the editor role to the service account. All operations in Instance Groups are performed on behalf of the service account.

  6. In the Allocation section, select the desired availability zones. Group instances may reside in different availability zones and regions. More about the geo scope of Yandex Cloud.

  7. In the Instance template section, click Define to set the base instance configuration:

    • Under Basic parameters:
      • Enter a description for the basic instance.
    • Select a public image.
    • In the Disks section:
      • Select the disk type.
      • Specify the disk size.
      • (optional) Click Add disk to add more disks.
    • Under Computing resources:
      • Choose a platform.
      • Specify the guaranteed share and the required number of vCPUs, as well as the amount of RAM.
      • (optional) Specify that the instance must be preemptible.
    • Under Network settings:
      • Select a cloud network and subnet. If there is no subnet, create one:
        • Click Create subnet.
        • Enter a name and a description for the new subnet. Specify an availability zone and a CIDR.
        • Click Create.
      • In the Public IP field, choose a method for assigning an IP address:
        • Auto: Assign a random IP address from the Yandex Cloud IP pool.
        • No address: Don't assign a public IP address.
      • (optional) Select a security group. If there is no security group, create one:
        • Click Add security group.
        • Enter a name and description for the security group. You will be able to add rules to the security group at a later stage using Virtual Private Cloud.
        • Click Create.
    • Under Access:
      • Select a service account from the list or create a new one.
      • If you selected a Linux-based public image:
        • Enter the username in the Login field.
        • In the SSH key field, paste the contents of the public key file. You need to create a key pair for SSH connection yourself.
      • If you selected a Windows-based public image:
        • In the Password field, set a password for the Administrator user. The Administrator user is created automatically.
      • Click Add.
      • If required, grant access to the serial console.
    • Click Save.
  8. Under Allow when creating and updating, specify:

    • The number of instances that can exceed the group size.

    • The number of instances the group size can be reduced by.

    • The number of instances that can be created simultaneously.

    • Initialization interval following which the virtual machine will begin to handle load.

    • The number of instances that you can stop simultaneously.

    • Instance shut-down strategy: Hard or Soft.

      For more information, see Deployment policy.

  9. In the Scalability section:

    • Select the scaling type.
    • If you selected the Fixed type, specify the size of the group.
    • If you selected Automatic, specify:
      • The minimum number of instances per availability zone.
      • Maximum group size.
      • Utilization measurement period: The period for which utilization measurements should be averaged for each instance in the group.
      • Instance warmup period: The period during which the created instance is not taken into account when measuring the average load on the group.
      • Stabilization period: The interval during which the required number of instances in the group can't be reduced.
      • Initial group size: The number of instances created with the group.
    • If you selected Constant with autoscaling test, enter group size and autoscaling parameters. For this type, autoscaling works in test mode.
  10. If you previously selected Auto as your scaling type, under Metrics, specify the target CPU load as a percentage.

  11. Under Integration with Load Balancer:

    • (optional) Click the Create target group toggle. Target groups are required for the network load balancer to perform its function.
      • Enter a name and description for the target group.
  12. Under Health checks:

    • (optional) Click the Activate toggle.
      • Select the check type: HTTP or TCP.
      • Specify the path for the checks.
      • Specify a port number from the range 1-32767.
      • Specify the response timeout in seconds.
      • Specify the interval, in seconds, for sending health check requests.
      • Set the healthy threshold, which is the number of successful checks required in order to consider the VM ready to receive traffic.
      • Set the unhealthy threshold, which is the number of failed checks after which no traffic will be routed to the VM.
  13. Click Create.

The instance group appears in the list.

What's next

  • Watch tutorials for creating web services in Yandex Cloud.
  • Learn how to work with instance groups.
  • Read answers to frequently asked questions.

Was the article helpful?

Language / Region
© 2022 Yandex.Cloud LLC
In this article:
  • Before you begin
  • Create an instance group
  • What's next