Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Compute Cloud
  • Yandex Container Solution
    • Resource relationships
    • Graphics processing units (GPUs)
    • Images
      • Overview
      • Access
      • YAML specification
      • Instance template
      • Variables in an instance template
      • Scaling types
      • Instance health checks and automatic recovery
      • Integrating with network and L7 load balancers
      • Handling a stateful workload
      • Stopping and pausing an instance group
      • Sequentially restarting and recreating instances in a group
      • Statuses
    • Dedicated host
    • Encryption
    • Backups
    • Quotas and limits
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Concepts
  2. Instance groups
  3. Sequentially restarting and recreating instances in a group

Restarting and recreating instances in a group one by one

Written by
Yandex Cloud
Updated at February 12, 2025

Instances in a group can be automatically restarted or recreated one by one based on the parameters specified in the instance group deployment policy. These actions can apply both to all instances in the group and to specified instances only.

For example, if the maximum number of unhealthy instances per group set in the deployment policy is 1, then, when restarting or recreating instances one by one, only one instance will be unavailable at any given time and each next instance will be restarted or recreated only after the status of the previous instance changes to Running.

Restarting group instances one by one may be useful, for example, when updating the VM software. This feature allows performing automatic software updates with no downtime of the instance group resources for end users.

Recreating group instances one by one may be useful, for example, when migrating an instance group to a different availability zone. This feature allows recreating instances in a group automatically with no downtime of the instance group resources for end users.

Warning

With the instance stopping strategy, Instance Groups will restart or recreate a VM instance if at least one of the following conditions is met:

  • The user stops the instance in Compute Cloud.
  • The application or user stops the instance internally.
  • The instance fails the application health check.

To restart or recreate instances in a group one by one, use the Yandex Cloud CLI or make an API request.

See alsoSee also

  • Sequentially restarting instances in a group
  • Sequentially recreating instances in a group

Was the article helpful?

Previous
Stopping and pausing an instance group
Next
Statuses
Yandex project
© 2025 Yandex.Cloud LLC