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
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
  • Yandex Container Solution
    • Resource relationships
    • Graphics processing units (GPUs)
    • Images
      • Overview
      • Access
      • YAML specification
      • Instance template
      • Variables in an instance template
        • Overview
        • Allocation policy
        • Deployment policy
        • Scaling policy
        • Recovery policy
      • 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. Policies
  4. Recovery policy

Recovery policy

Written by
Yandex Cloud
Updated at December 15, 2023

When creating an instance group, you can choose how instances that fail a health check or an application health check will be recovered.

You can set the recovery policy in the auto_healing_policy key in the YAML file.

You can manage recovery policies using the CLI.

Here is how a YAML file entry may look like:

...
auto_healing_policy:
  auto_healing_action: RESTART
...

Where:

Key Value
auto_healing_action Action to perform for an instance's recovery. Three types of actions are available:
  • RESTART: Restart a failed instance.
  • RECREATE: In the event of a failure, the original instance is deleted and a new one is deployed instead.
    Recreating VM instances may be helpful if the data they store is not critical and the software needs to be deployed again.
  • NONE: Disable recovery for group instances.
    Select this option if you need to recover an instance manually or retrieve data from it to perform diagnostics.
The default value is RESTART.

If you do not set the recovery policy, the VM instances will be auto-healed depending on the deployment policy settings.

See also

  • Scaling policy
  • Allocation policy
  • Deployment policy

Was the article helpful?

Previous
Scaling policy
Next
Scaling types
© 2025 Direct Cursus Technology L.L.C.