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
    • 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 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
    • Yandex StoreDoc versioning policy
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Maintenance window
  • Maintenance workflow
  • Non-sharded cluster
  • Sharded cluster
  1. Concepts
  2. Maintenance

Maintenance in Yandex StoreDoc

Written by
Yandex Cloud
Updated at July 23, 2026
View in Markdown
  • Maintenance window
  • Maintenance workflow
    • Non-sharded cluster
    • Sharded cluster

Maintenance includes:

  • Automatic installation of DBMS updates and patches for hosts (including for stopped clusters).
  • Scheduled automatic storage expansion.
  • Other maintenance activities.

A major DBMS version update is not part of maintenance. For more information about migrating between versions, see Yandex StoreDoc version upgrade.

Maintenance windowMaintenance window

You can set your preferred maintenance start time using the Yandex Cloud interfaces (management console, CLI, Terraform, and API) when creating or updating a cluster:

  • The At any time option (default) allows performing maintenance at any time.
  • The By schedule option allows you to select the day of the week and UTC time interval for the maintenance. For example, you can choose a time when the cluster is least loaded.

Both active and stopped clusters are subject to maintenance. Maintenance operations may include DBMS updates, applying patches, etc.

In the management console, you select the maintenance start time as an hour interval. In other interfaces, you specify this interval by its sequence number, from 1 to 24.

For example, to start maintenance in the interval from 00:00 to 01:00, put 1; from 04:00 to 05:00, 5.

Note

To view maintenance task information, you need the managed-mongodb.maintenanceTask.viewer role or higher.

To manage maintenance tasks, you need the managed-mongodb.maintenanceTask.editor role or higher.

Maintenance workflowMaintenance workflow

The Yandex StoreDoc cluster maintenance workflow depends on the number of hosts and sharding.

Non-sharded clusterNon-sharded cluster

The maintenance procedure is as follows:

  1. Secondary replicas undergo maintenance one by one. Such hosts are queued randomly. A secondary replica becomes unavailable while being restarted during maintenance.
  2. After that, the primary replica (master) undergoes maintenance. If it is restarted and becomes unavailable, one of the secondary replicas will take its role. A single-host cluster will be unavailable during its maintenance.

Sharded clusterSharded cluster

In sharded clusters, the maintenance procedure is as follows:

  1. The load balancer stops.

  2. Hosts with the MONGOINFRA role for standard sharding or MONGOCFG for advanced sharding undergo maintenance one by one. For hosts with the MONGOINFRA role, only MongoCFG is subject to maintenance. Host maintenance is run in the same way as it would in a non-sharded cluster:

    1. Secondary replicas undergo maintenance one by one. Such hosts are queued randomly. A secondary replica becomes unavailable while being restarted during maintenance.
    2. Then, the primary replica undergoes maintenance. If it is restarted and becomes unavailable, one of the secondary replicas will take its role.
  3. Shards undergo maintenance one by one, in ascending order by shard number. Host maintenance in each shard is the same as in non-sharded clusters:

    1. Secondary replicas undergo maintenance one by one. Such hosts are queued randomly. A secondary replica becomes unavailable while being restarted during maintenance.
    2. Then, the primary replica undergoes maintenance. If it is restarted and becomes unavailable, one of the secondary replicas will take its role. A single-host shard will be unavailable during its maintenance.
  4. Hosts with the MONGOINFRA role for standard sharding or MONGOS for advanced sharding undergo maintenance one by one. For hosts with the MONGOINFRA role, MongoS is subject to maintenance. Such hosts are queued randomly. Any host that requires a restart during maintenance will be unavailable until maintenance is complete.

  5. The load balancer resumes its operation.

Was the article helpful?

Previous
Users and roles
Next
Supported clients
© 2026 Direct Cursus Technology L.L.C.