What Is Reserved Memory? How Do I Configure Reserved Memory?
Reserved Memory
Reserved memory is part of the memory that is not used for storing data, but for data persistence, master/standby synchronization, and backup.
Parameter reserved-memory-percent is used for configuring reserved memory.
In the monitoring data, the memory usage does not include the usage of reserved memory.
Reserved memory can be configured for the following instances:
- Single-node DCS Redis 3.0 instances
- Master/standby DCS Redis 3.0 instances
- Single-node DCS Memcached instances
- Master/standby DCS Memcached instances
If you do not configure sufficient reserved memory (data occupies too much memory), the following problems may occur:
- Operations on the DCS instance become slow. (The system enables swap, deteriorating the performance.)
- Data cannot be backed up.
- Data cannot be synchronized between the master and standby nodes in time.
- Instance specifications cannot be changed.
- The process may restart.
Procedure for Configuring Reserved Memory
- Log in to the DCS console.
- Click
in the upper left corner and select a region and a project. - In the navigation pane, choose Cache Manager.
- Click a DCS instance.
- Choose Instance Configuration > Parameters.
- Click Modify in the row containing reserved-memory-percent.
- Set the parameter to at least 30 for a single-node or master/standby instance. For instances created in or after 2021, the default value is 30.
- The percentage takes the maximum available memory, rather than the total memory, as the whole. The available memory is listed in the Available Memory column in DCS Instance Specifications.
- Click Save.
- Click Yes to confirm the modification.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.