Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
    • All guides
      • Updating an instance group
      • Updating an instance group based on a YAML specification
      • Moving an instance group to a different availability zone
      • Moving an instance group with a network load balancer to a different availability zone
      • Moving an instance group with an L7 load balancer to a different availability zone
      • Configuring application health checks on a VM instance
        • Rolling updates
        • Zero-downtime updates
      • Pausing an instance group
      • Resuming an instance group
      • Sequentially restarting instances in a group
      • Sequentially recreating instances in a group
      • Stopping an instance group
      • Starting an instance group
      • Configuring instance group access permissions
      • Removing an instance group from a placement group
      • Deleting an instance group
    • Viewing service resource operations
    • Viewing metrics in Monitoring
    • NVIDIA driver update guide
  • Yandex Container Solution
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing an instance group
  3. Updating a group
  4. Zero-downtime updates

Zero-downtime updates

Written by
Yandex Cloud
Updated at February 12, 2025

To keep your service available, you can update instance groups by creating additional instances with new configurations.
As you add VM instances with the new configuration to the group, those with the old configuration will be removed.

For this, follow these steps:

  1. Define the instance template you need.
  2. Set the deployment policy with a non-zero value for max_expansion, which stands for the maximum number of additional instances to create.
  3. Start group updating.

For example, to update a group by adding and removing one VM instance at a time, configure deploy-policy as follows:

...
deploy-policy:
    max_unavailable = 0
    max_expansion = 1
    ...
...

The group will be updated as follows:

Blue-green deployment

Was the article helpful?

Previous
Rolling updates
Next
Pausing an instance group
© 2025 Direct Cursus Technology L.L.C.