Maintenance in Yandex Managed Service for Valkey™
Maintenance means:
- Automatic installation of DBMS updates and fixes for hosts (including for disabled clusters).
- Scheduled automatic increase of storage size.
- Other maintenance activities.
Changing a major DBMS version is not part of maintenance. For more information about migrating between major versions, see Valkey™ version upgrade.
Maintenance window
You can set the preferred maintenance time when creating a cluster or updating its settings:
- The arbitrary option (default) allows performing maintenance at any time.
- The by schedule option allows setting the preferred maintenance start day and time (UTC). For example, you can choose a time when the cluster is least loaded.
Maintenance procedure
The Yandex Managed Service for Valkey™ cluster maintenance procedure depends on the number of hosts and the presence of shards.
Non-sharded cluster
The maintenance procedure is as follows:
- Replica hosts undergo maintenance one by one. The hosts are queued randomly. A replica becomes temporarily unavailable if it needs to be restarted during maintenance.
- Maintenance is performed on a master host. If it is restarted and becomes unavailable, one of the replicas takes its role. A single-host cluster will be unavailable during its maintenance.
Sharded cluster
In sharded clusters, maintenance is performed shard by shard in ascending order by shard number. Host maintenance in each shard is the same as in non-sharded clusters:
- Replica hosts undergo maintenance one by one. The hosts are queued randomly. A replica becomes temporarily unavailable if it needs to be restarted during maintenance.
- Maintenance is performed on a master host. If it is restarted and becomes unavailable, one of the replicas takes its role. A single-host shard will be unavailable during its maintenance.