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 data memory that Redis has used to the total used memory 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 |
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 Dimension: dcs_instance_id |
1 minute |
memory_frag_ratio |
Memory Fragmentation Ratio |
Ratio between Used Memory RSS and Used Memory |
≥ 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 |
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 |
Redis Usage FAQs
- Can I Change the CPU Architecture?
- Can I Change the AZ for an Instance?
- Can I Change the VPC and Subnet for a DCS Redis Instance?
- Can I Customize or Change the Port for Accessing a DCS Instance?
- Can I Modify the Connection Addresses for Accessing a DCS Instance?
- Why Do I Fail to Delete an Instance?
- Why Does It Take a Long Time to Start a Cluster DCS Instance?
- What Should I Do If an Error Occurs in redis_exporter?
- What Is Reserved Memory? How Do I Configure Reserved Memory?
- Why Is Available Memory Smaller Than Instance Cache Size?
- Why Is Redisson Distributed Lock Not Supported by DCS Proxy Cluster Redis 3.0 Instances?
- Does DCS for Redis Provide Backend Management Software?
- Can I Recover Deleted Data of a DCS Instance?
- Why Is Available Memory of Unused DCS Instances Less Than Total Memory and Why Is Memory Usage of Unused DCS Instances Greater Than Zero?
- How Do I Estimate Redis Memory Usage?
- Why Is the Capacity or Performance of a Shard of a Redis Cluster Instance Overloaded When That of the Instance Is Still Below the Bottleneck?
- Why Does an OOM Error Occur During a Redis Connection?
- What Clients Can I Use for Redis Cluster in Different Programming Languages?
- Why Do I Need to Configure Timeout for Redis Cluster?
- Why Am I Seeing a Timeout Error When Reading Data from Redis?
- Explaining and Using Hash Tags
- Why Does a Key Disappear in Redis?
- Will Cached Data Be Retained After an Instance Is Restarted?
- How Do I Know Whether an Instance Is Single-DB or Multi-DB?
- What Are the Constraints on Implementing Multi-DB on a Proxy Cluster Instance?
- How Do I Buy a Multi-DB Proxy Cluster Instance?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore