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
    • ML Services
    • 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
  • Yandex Container Solution
    • Resource relationships
    • Graphics processing units (GPUs)
    • Images
      • Overview
        • Overview
        • Multi-zonal group with instances in the incident zone
      • 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
    • Reserved instance pools
    • Encryption
    • Backups
    • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • Fixed-size instance groups
  • Autoscaling instance groups
  • Autohealing an instance in the group
  • Updating an instance in the group
  • Completing instance group operations initiated before the incident
  1. Concepts
  2. Instance groups
  3. Instance groups during a zonal incident
  4. Multi-zonal group with instances in the incident zone

Multi-zonal Yandex Compute Cloud instance group with instances in the incident zone

Written by
Yandex Cloud
Updated at September 29, 2025
  • Fixed-size instance groups
  • Autoscaling instance groups
  • Autohealing an instance in the group
  • Updating an instance in the group
  • Completing instance group operations initiated before the incident

Tip

We recommend using multiple zonal instance groups distributed across availability zones instead of a single multi-zonal group. This approach provides more granular control over instance distribution and updates, allowing you to manage your instance groups in each zone independently.

To compensate for lost capacity from instances in the affected zone, we recommend you initially set your instance group size with a performance buffer. Otherwise, temporarily increase the size of instance groups in the healthy zones during the incident.

We also recommend using the deployment policy max_expansion parameter which controls the maximum number of instances to add when updating the group. When this parameter is set, new instances will be created first, and only then the old ones will get deleted. During autohealing, the new instance will always be created in the old instance’s zone, provided this zone is available.

The scaling behavior of your instance group will vary depending on the scaling policy:

  • Fixed-size instance groups
  • Autoscaling instance groups

See also some aspects of other actions on instance groups during a zonal incident:

  • Autohealing an instance in the group
  • Updating an instance in the group
  • Completing instance group operations initiated before the incident

Fixed-size instance groupsFixed-size instance groups

In fixed-size groups, instances are always distributed evenly across availability zones. This behavior persists even during a zonal incident.

If the number of instances in a group is divisible by the number of zones, the instances will be evenly split across the zones. In healthy zones, the new instances will be created immediately; in the affected zone, they will be created after the incident ends.

If the number of instances is not divisible by the number of zones, the remaining instances will be distributed only among healthy zones. If instance distribution across zones is uneven, instances will be added to the zone with the fewest instances to restore balance even if the zone is not operational.

Here is an example: Group instances are distributed across three zones, ru-central1-a, ru-central1-b, and ru-central1-d, one instance per zone.

When there is no incident, if you add two instances to the group, they will be distributed across zones as follows:

  • ru-central1-a: Two instances
  • ru-central1-b: Two instances
  • ru-central1-d: One instance

When there is an incident in the ru-central1-b zone:

  • ru-central1-a: Two instances
  • ru-central1-b: One instance
  • ru-central1-d: Two instances

This way, you can develop your own strategy to automatically make up for lost resources in the affected zone.

Warning

During a zonal incident, some of the new instances in a fixed-size group will still be assigned to the affected zone. Configure your groups with a performance buffer and make sure all instances can be evenly split across zones.

Autoscaling instance groupsAutoscaling instance groups

In autoscaling groups, new instances are distributed across availability zones for maximum efficiency, according to the scaling policy settings.

For example, if your application runs on 9 instances and is deployed across two availability zones, you need to host 9 instances in each zone, 18 in total.

Alternatively, if your application runs on 9 instances and is deployed across three availability zones, the total number of instances in the group must be 12.

Tip

To compensate for lost capacity from instances in the affected zone, set the scaling policy max_size parameter with a performance buffer.

Regardless of the autoscaling type, the number of instances in the affected zone will not change. During an incident, instances are created or deleted only in unaffected zones. New instances are created until the max_size limit is reached.

In groups with zonal autoscaling, instances do not have to be evenly distributed across zones. They will be created or deleted in healthy zones based on the workload.

In groups with regional autoscaling, instances are always evenly distributed across zones. However, an incident may lead to an imbalance in distribution.

When the incident is over, instances are automatically redistributed across all zones based on the group’s autoscaling type.

Autohealing an instance in the groupAutohealing an instance in the group

During a zonal incident, autohealing continues to work normally in healthy zones:

  • Instances deemed unhealthy based on their status in Compute Cloud will be recovered as normal without counting against any quota.
  • Instances deemed unhealthy based on application health checks will be recovered within the max_unavailable quota. In the deployment policy, this quota defines the maximum allowed number of unavailable instances during group updates. If autohealing is on, instances residing in the affected zone are excluded from the max_unavailable quota during the incident, so recovery will run normally in other zones.

Updating an instance in the groupUpdating an instance in the group

You can update your instances to a new version even during a zonal incident.

In healthy zones, changes are applied immediately, while instances in the affected zone will be updated after the incident is over.

Warning

To avoid losing all instances in the group during an update, instances from the affected zone will count toward the max_unavailable limit set in the deployment policy. This means that, during an incident, you should increase the max_expansion parameter to safely perform updates.

Completing instance group operations initiated before the incidentCompleting instance group operations initiated before the incident

A zonal incident during an instance update will not disrupt the process even if there are active operations on instances in the affected zone. The update will continue in unaffected zones, provided the max_unavailable quota in the deployment policy is not exceeded. After the incident ends, the remaining instances in the affected zone will also get updated to the target state.

Note

Compute Cloud aims to achieve the target state for the instance group, so group updates may follow hybrid scenarios.

For example, if the instances were getting updated before the incident and you need to scale up the group afterward, the updated target specification will apply to the new instances.

Was the article helpful?

Previous
Overview
Next
Access
© 2025 Direct Cursus Technology L.L.C.