Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • 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
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Architecture solutions
    • Recommendations on fault tolerance in Yandex Cloud
    • Restoring database clusters in case of an availability zone failure
    • Deploying a web app in a fault-tolerant configuration in Yandex Cloud
    • Hosting a static website in Yandex Cloud
    • MLOps management in Managed Service for GitLab

In this article:

  • All cluster hosts are in the unavailable zone
  • Some hosts are in the available zone; the master switched
  • Master did not switch, and the cluster is read-only
  • The cluster does not have hosts in the unavailable zone
  • Restoring a cluster from a backup using the OpenSearch API
  • Migrating a database from Managed Service for PostgreSQL to a different PostgreSQL cluster using logical replication
  1. Fault tolerance
  2. Restoring database clusters in case of an availability zone failure

Restoring database clusters in case of an availability zone failure

Written by
Yandex Cloud
Updated at November 9, 2026
View in Markdown
  • All cluster hosts are in the unavailable zone
  • Some hosts are in the available zone; the master switched
  • Master did not switch, and the cluster is read-only
  • The cluster does not have hosts in the unavailable zone
  • Restoring a cluster from a backup using the OpenSearch API
  • Migrating a database from Managed Service for PostgreSQL to a different PostgreSQL cluster using logical replication

If one of the availability zones is unavailable, the process depends on the host location and cluster state. In the examples below, the ru-central1-b is assumed to be unavailable. Select the appropriate use case:

  • All cluster hosts are in the unavailable zone.
  • Some hosts are in the available zone; the master switched.
  • Some hosts are in the available zone; the master did not switch, and the cluster is read-only.
  • The cluster does not have hosts in the unavailable zone.

All cluster hosts are in the unavailable zoneAll cluster hosts are in the unavailable zone

To reduce the downtime, do not wait for the availability zone to become available again and start restoring from a backup.

  1. Check the available cluster’s backups and choose the restore point. Recovery to a certain time period depends on the service and backup type.
  2. Restore your cluster from a backup using your service’s guide. When configuring the new cluster, locate its hosts in different availability zones.
  3. Wait until the recovery is complete, check the data, and configure your application connection to the new cluster.

Warning

Data missing for the selected restore point will be missing in the new cluster. If you do not have an appropriate backup or recovery fails, contact support.

Guide on restoring from a backup:

Service

Guide

Managed Service for PostgreSQL

Restoring a cluster

Managed Service for MySQL®

Restoring a cluster

Managed Service for ClickHouse®

Restoring a cluster or shard

Yandex Managed Service for Valkey™

Restoring a cluster

Yandex StoreDoc

Restoring a cluster

Managed Service for OpenSearch

Restoring a cluster

Yandex MPP Analytics for PostgreSQL

Restoring a cluster

Managed Service for Sharded PostgreSQL

Restoring a cluster

A Managed Service for Sharded PostgreSQL backup contains shard configuration. Restore the shard data separately in Managed Service for PostgreSQL if needed.

Some hosts are in the available zone; the master switchedSome hosts are in the available zone; the master switched

This use case is suitable for a multi-host cluster if a master switched to a host in a different availability zone.

  1. Make sure your application connects to the new master and can write data.
  2. If adding hosts is not available, add hosts to a different zones to replace the unavailable ones. If you cannot add hosts, contact support.
  3. What until the new hosts sync data and will be able to operate. Then delete the hosts in the ru-central1-b zone considering the service limit on the minimum number of hosts. If deletion is temporarily unavailable, try again later.

Guides on managing hosts:

Service

Adding a host

Deleting a host

Managed Service for PostgreSQL

Guide

Guide

Managed Service for MySQL®

Guide

Guide

Yandex Managed Service for Valkey™

Guide

Guide

Yandex StoreDoc

Guide

Guide

Master did not switch, and the cluster is read-onlyMaster did not switch, and the cluster is read-only

This use case is suitable for a multi-host cluster with some hosts in the ru-central1-b zone, if a master did not switch, and the cluster switched to read-only (RO).

Automatic master switch may not occur because of the risk of data loss. In this use case, you cannot switch the master manually.

  1. Contact support. Specify the cluster ID and describe its state.
  2. Wait for the support team to switch your master.
  3. Perform the actions described in the use case where the master switched.

The cluster does not have hosts in the unavailable zoneThe cluster does not have hosts in the unavailable zone

To prepare for possible failures of other availability zones:

  1. Check the cluster’s and application’s configuration using these recommendations on fault tolerance. Consider your service requirements to the host location and number.
  2. If you need to set up data transfer and replication, check these Data Transfer guides and requirements on preparing the source and target.

Restoring a cluster from a backup using the OpenSearch APIRestoring a cluster from a backup using the OpenSearch API

You can connect Object Storage to a Managed Service for OpenSearch cluster as a snapshot repository. You will be able to create backups manually or on schedule using the OpenSearch Snapshot API.

  1. Create a repository to store snapshots specifying Object Storage.
  2. Create a policy for regular snapshot creation.
  3. Configure access permissions and add the snapshot repository for your Managed Service for OpenSearch cluster.
  4. Configure access permissions and add the snapshot repository for your Managed Service for OpenSearch cluster.

Migrating a database from Managed Service for PostgreSQL to a different PostgreSQL cluster using logical replicationMigrating a database from Managed Service for PostgreSQL to a different PostgreSQL cluster using logical replication

A Managed Service for PostgreSQL cluster supports logical replication. This allows you to use built-in PostgreSQL tools for migrating databases across different PostgreSQL clusters.

To migrate a database, follow this tutorial.

Was the article helpful?

Previous
Recommendations on fault tolerance in Yandex Cloud
Next
Deploying a web app in a fault-tolerant configuration in Yandex Cloud
© 2026 Direct Cursus Technology L.L.C.