How Do I Estimate Redis Memory Usage?
The estimated memory usage may be different from the actual memory usage. Currently, DCS for Redis provides the following memory-related metrics:
| Metric ID | Metric Name | Description | Value Range | Monitored Object and Dimension | Monitoring Period (Raw Data) |
|---|---|---|---|---|---|
| memory_usage | Memory Usage | Memory consumed by the monitored object Unit: % | 0–100% | Monitored object: Single-node, master/standby, or cluster DCS Redis instance Dimension: dcs_instance_id | 1 minute |
| used_memory | Used Memory | Number of bytes used by the Redis server Unit: byte | ≥ 0 | Monitored object: Single-node, master/standby, or cluster DCS Redis instance Dimension: dcs_instance_id | 1 minute |
| used_memory_dataset | Used Memory Dataset | Dataset memory that the Redis server has used Unit: byte | ≥ 0 | Monitored object: Single-node, master/standby, or cluster DCS Redis instance Supported by Redis 4.0 and later Dimension: dcs_instance_id | 1 minute |
| used_memory_dataset_perc | Used Memory Dataset Ratio | Percentage of dataset memory that the Redis server has used Unit: % | 0–100% | Monitored object: Single-node, master/standby, or cluster DCS Redis instance Supported by Redis 4.0 and later Dimension: dcs_instance_id | 1 minute |
| used_memory_rss | Used Memory RSS | Resident set size (RSS) memory that the Redis server has used, which is the memory that actually resides in the memory, including all stack and heap memory but not swapped-out memory Unit: byte | ≥ 0 | Monitored object: Single-node, master/standby, or cluster DCS Redis instance Dimension: dcs_instance_id | 1 minute |
| memory_frag_ratio | Memory Fragmentation Ratio | Current memory fragmentation, which is the ratio between used_memory_rss/used_memory. | ≥ 0 | Monitored object: Single-node, master/standby, or cluster DCS Redis instance Dimension: dcs_instance_id | 1 minute |
| used_memory_peak | Used Memory Peak | Peak memory consumed by Redis since the Redis server last started Unit: byte | ≥ 0 | Monitored object: Single-node, master/standby, or cluster DCS Redis instance Dimension: dcs_instance_id | 1 minute |
| used_memory_lua | Used Memory Lua | Number of bytes used by the Lua engine Unit: byte | ≥ 0 | Monitored object: Single-node, master/standby, or cluster DCS Redis instance Dimension: dcs_instance_id | 1 minute |
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.