How Do I Detect Big Keys and Hot Keys in Advance?
Method |
Description |
---|---|
Through Big Key Analysis and Hot Key Analysis on the DCS console |
|
By using the bigkeys and hotkeys options on redis-cli |
|
Searching for big keys using Redis commands |
If there is a pattern of big keys, for example, the prefix is cloud:msg:test, you can use a program to scan for keys that match the prefix, and then run commands to query the number of members in the key and query the key sizes to find big keys.
CAUTION:
This method consumes a large number of computing resources. To ensure service running, do not use this method on instances with heavy service pressure. |
Searching for big keys using redis-rdb-tools |
redis-rdb-tools is an open-source tool for analyzing Redis RDB snapshot files. You can use it to analyze the memory usage of all keys in a Redis instance. To use this method, you must export the RDB file of an instance on the Backups & Restorations page of the DCS console.
CAUTION:
This method does not affect service running, but is not as timely as online analysis. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.