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
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • 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.
Yandex Managed Service for PostgreSQL
  • Getting started
    • Resource relationships
    • Planning a cluster topology
    • High availability clusters
    • Networking in Managed Service for PostgreSQL
    • Quotas and limits
    • Storage in Managed Service for PostgreSQL
    • Backups
    • Assigning roles
    • Managing connections
    • Load balancer for hosts
    • Replication
    • Maintenance
    • Supported clients
    • PostgreSQL settings
    • Indexes
    • SQL command limits
    • Upgrading the PostgreSQL major version
    • PostgreSQL versioning policy
  • Access management
  • Inspections and recommendations
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Number and placement of cluster hosts
  • Replication settings
  • Maintenance settings
  • Other settings
  1. Concepts
  2. High availability clusters

High availability of a Managed Service for PostgreSQL cluster

Written by
Yandex Cloud
Updated at September 14, 2026
View in Markdown
  • Number and placement of cluster hosts
  • Replication settings
  • Maintenance settings
  • Other settings

High availability of a Managed Service for PostgreSQL cluster depends on the number and placement of its hosts, replication settings, and other cluster parameters.

Number and placement of cluster hostsNumber and placement of cluster hosts

A cluster may consist of one or more hosts.

A single-host cluster does not provide high availability. If the master host VM fails, your cluster will be unavailable for reading and writing until the VM recovers completely. Single-host clusters are not covered by the Service level agreement (SLA).

Warning

We do not recommend creating a single-host cluster.

A cluster with two hosts located in different availability zones is considered highly available and is subject to the SLA. This option is suitable for medium-sized applications in a production environment. The default cluster configuration offered in the management console includes two hosts.

A cluster with three or more hosts located in three different availability zones is considered highly available and is subject to the SLA. Such clusters are suitable for production environments subject to high availability and performance requirements.

For more information, see Planning cluster topology.

Replication settingsReplication settings

High cluster availability is achieved through replication and master failover mechanisms, which have the following features:

  • Clusters uses streaming replication. Each replica host receives a replication stream from another host, typically the master. Managed Service for PostgreSQL manages replication streams in the cluster automatically, but you can manage them manually if you need to. When you set the replication source manually, the replicas will have a number of limitations.
  • If you have configured public access for the master host, you must also enable it for the replicas; otherwise, the cluster may become unavailable after a master failover.
  • The cluster uses automatic master selection and failover in case the current master fails.

Replication management and automatic failover ensure the highest possible write availability for clusters with any number of hosts.

In a cluster of three or more hosts:

  • If the master fails, the system automatically switches to a new master.
  • Loss of a replica does not affect cluster availability.

In a two-host cluster:

  • If the master fails, the system automatically fails over to a synchronous replica with zero data loss.
  • If a replica fails, the cluster automatically switches to asynchronous replication mode within 15 seconds. During this period, transactions may pause while awaiting confirmation but resume and complete successfully once the cluster switches to asynchronous mode. While recovering from the failure, the replica fully synchronizes with the master, and the cluster resumes operation in synchronous replication mode.

To minimize the risk of a cluster being unavailable for writes, we recommend deploying Managed Service for PostgreSQL clusters with three or more hosts.

Warning

Using a special FQDN simplifies application development, but your cluster will be unavailabile during master failover. To quickly switch to a new master, you need to implement monitoring of master replacement on the application side.

Maintenance settingsMaintenance settings

In some cases, maintenance is impossible without connection loss. Therefore, any application that accesses the database must be resilient to connection drops.

During maintenance, a cluster with two or more hosts may be unavailable for writes while switching masters. The host being restarted becomes unreadable. Single-host clusters are completely unavailable during restarts. We recommend selecting maintenance day and hour based on estimated cluster load.

PostgreSQL version upgrades make a cluster unavailable for writes. Replicas become unreadable one by one, i.e., at least one replica remains readable in a three-host cluster, two in a four-host cluster, etc. Single-host and two-host clusters become completely unavailable during PostgreSQL version upgrades. Take this into account when planning to upgrade your cluster version.

Other settingsOther settings

The following settings may also affect cluster availability:

  • Backup settings.
  • Storage disk type you selected.
  • Host classes.
  • Connection pooler's operation mode and settings.
  • Quotas and limits.
  • Write-ahead log (WAL) settings.

Was the article helpful?

Previous
Planning a cluster topology
Next
Networking in Managed Service for PostgreSQL
© 2026 Direct Cursus Technology L.L.C.