Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • 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 StoreDoc
  • Getting started
    • Resource relationships
    • Networking in Yandex StoreDoc
    • Quotas and limits
    • Storage in Yandex StoreDoc
    • Backups
    • Replication
    • High availability clusters
    • Sharding
    • Host types
    • Users and roles
    • Maintenance
    • Supported clients
    • Yandex StoreDoc settings
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Number and placement of cluster hosts
  • For a non-sharded cluster
  • For a cluster with standard sharding
  • For a cluster with advanced sharding
  • Backups
  • Connecting to Yandex StoreDoc
  • Available storage space
  • Virtual machine type
  • Maintaining a cluster and modifying its parameters
  1. Concepts
  2. High availability clusters

High availability of a Yandex StoreDoc cluster

Written by
Yandex Cloud
Updated at May 7, 2026
  • Number and placement of cluster hosts
    • For a non-sharded cluster
    • For a cluster with standard sharding
    • For a cluster with advanced sharding
  • Backups
  • Connecting to Yandex StoreDoc
  • Available storage space
  • Virtual machine type
  • Maintaining a cluster and modifying its parameters

The high availability of a Yandex StoreDoc cluster depends on the SLA-related parameters and some other settings.

Number and placement of cluster hostsNumber and placement of cluster hosts

For a non-sharded clusterFor a non-sharded cluster

A single-host cluster does not provide high availability. If the primary replica fails, your cluster becomes unavailable for reading and writing until the replica is recovered.

If your cluster has at least two hosts, it remains available if one of them fails.

A cluster with two or more hosts located in different availability zones remains available for reading if one zone fails. To keep the cluster available for writing, each availability zone must contain no more than half of all the cluster's hosts.

Hidden hosts do not affect cluster availability and are not included in the calculations.

For a cluster with standard shardingFor a cluster with standard sharding

A cluster remains tolerant to a single zone failure under the following conditions:

  • The cluster has at least two MONGOINFRA hosts.
  • No availability zone contains more than half of all MONGOINFRA hosts.
  • Each shard has at least two MONGOD hosts.
  • No availability zone contains more than half of MONGOD hosts that belong to a single shard.

Hidden hosts do not affect cluster availability and are not included in the calculations.

For a cluster with advanced shardingFor a cluster with advanced sharding

A cluster remains tolerant to a single zone failure under the following conditions:

  • The cluster has at least two MONGOS hosts and two MONGOCFG hosts.
  • No availability zone contains more than half of all MONGOS or MONGOCFG hosts.
  • Each shard has at least two MONGOD hosts.
  • No availability zone contains more than half of MONGOD hosts that belong to a single shard.

Hidden hosts do not affect cluster availability and are not included in the calculations.

BackupsBackups

If a cluster goes down, you can restore it from a backup.

To ensure data integrity and acceptable cluster recovery time:

  • Make sure the cluster is running and automatic backups are under way at the scheduled backup start time.
  • Set the backup retention period as needed.
  • Perform manual backups before making important changes. Manual backups are stored with no time limit.
  • Regularly test cluster recovery from backups.

Connecting to Yandex StoreDocConnecting to Yandex StoreDoc

Yandex StoreDoc cluster availability depends on the connection method and settings:

  • Only use recommended clients for connection.

  • Enable public access and configure security groups for each cluster host.

    Warning

    If public access is not configured for all cluster hosts, automatic primary replica failover may render the cluster unavailable from the internet.

Available storage spaceAvailable storage space

Yandex StoreDoc monitors how much disk space is used and automatically activates Read only mode for those cluster hosts that have:

  • Less than 500 MB of free disk space left (if the host storage size is less than 600 GB).
  • Less than 5 GB of free disk space left (if the host storage size is 600 GB or more).

To keep your cluster's hosts writable, regularly check its Disk space usage per host chart or create an alert with the disk.free_bytes metric.

Virtual machine typeVirtual machine type

Cluster availability depends on the type of VMs you use to deploy your hosts. A highly available cluster should use a VM type with a 100% vCPU guarantee. The burstable VM type with a 50% vCPU guarantee does not ensure high availability and should only be used for test environments.

Maintaining a cluster and modifying its parametersMaintaining a cluster and modifying its parameters

The following operations may lead to interrupted database connections and temporary performance degradation:

  • Maintenance start (you set the start time when you select the maintenance window).
  • Host class change.
  • Automatic and manual database backups.

Run these operations when the cluster load is minimal.

Warning

These operations may trigger a primary replica switch. If the cluster has no hosts that can become the new primary replica, it is rendered temporarily unavailable.

Was the article helpful?

Previous
Replication
Next
Sharding
© 2026 Direct Cursus Technology L.L.C.