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 Valkey™
  • Getting started
    • Resource relationships
    • High availability clusters
    • Networking in Yandex Managed Service for Valkey™
    • Sharding
    • Backups
    • Replication and persistence
    • Supported clients
    • Memory management
    • Available commands
    • Valkey™ modules
    • Quotas and limits
    • Storage
    • Maintenance
    • Valkey™ settings
    • Valkey™ versioning policy
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Improving the performance and stability of the Valkey™ process
  • Backup stability
  1. Concepts
  2. Memory management

Memory management in Yandex Managed Service for Valkey™

Written by
Yandex Cloud
Updated at January 19, 2026
View in Markdown
  • Improving the performance and stability of the Valkey™ process
  • Backup stability

For user data on the Yandex Managed Service for Valkey™ cluster hosts, 75% of the total amount of RAM is allocated. The remaining RAM is reserved for the Valkey™ process's own needs. You can reduce the amount of RAM allocated for user data by using the Maxmemory percent parameter. This may be helpful if an out-of-memory error occurs in the cluster.

By reserving RAM on the host, you can:

  • Improve the Valkey™ process performance and stability.
  • Ensure backup stability.

Improving the performance and stability of the Valkey™ processImproving the performance and stability of the Valkey™ process

Yandex Managed Service for Valkey™ cluster hosts use the vm.overcommit_memory = 0 Linux kernel setting. The Valkey™ process leverages it to minimize the number of swap file accesses. This increases performance and ensures stable operation of the Valkey™ process, for example, during replication and backups.

Backup stabilityBackup stability

Backups in Yandex Managed Service for Valkey™ are created based on a consistent snapshot of the process memory. The snapshot is created by copying the original Valkey™ process through the fork() system call.

With fork(), you can reduce RAM usage, as the original Valkey™ process and its copy share the same memory pages. Reserved RAM and the vm.overcommit_memory = 0 setting make fork() more secure: creating backups does not affect the performance of the main Valkey™ process.

fork() uses the Copy-on-Write mechanism: if a shared memory page is modified, its copy is created, and the changes are written into that copy. So if you write to the cluster while a backup is being created, the updated and new data are going to take up extra RAM space. Therefore, intense writing may deplete host memory even with reserved RAM available. In which case the host's operating system will terminate the Valkey™ processes citing out of memory. Valkey™ will become unavailable on this host, and the replication and backup operations will be interrupted. To avoid this:

  • Make sure to start backups when the cluster load is minimum.
  • Increase the amount of RAM by upgrading the host class.

Was the article helpful?

Previous
Supported clients
Next
Available commands
© 2026 Direct Cursus Technology L.L.C.