You can call the API operations of Database Autonomy Service (DAS) to perform real-time Top Key statistics or offline full key analysis.
Function introduction
Real-time Top Key statistics: Displays large keys and hot keys in an instance in real time. This feature also lets you view the history of large keys and hot keys from the last four days. Use this information to understand key memory usage and access frequency to aid your optimization efforts. For more information, see Top Key statistics.
Offline full key analysis: Analyzes Redis backup files to show details of large keys in an instance and displays real-time information about hot keys. This helps you understand key memory usage, distribution, and time-to-live (TTL). Use this data to aid your optimization efforts and prevent issues such as out of memory errors or performance degradation caused by key skew. For more information, see Offline full key analysis.
Precautions
The API operations in this topic are part of DAS. To call these operations, you must use the DAS software development kit (SDK): Alibaba Cloud DAS SDK for Java.
For more information about how to use the SDK, see V2.0 Java SDK (Recommended).
Related API operations
Category | API Operations | Description |
Cache analysis | Creates an offline full key analysis task. | |
Queries a list of offline full key analysis tasks. | ||
Queries the details of an offline full key analysis task. | ||
Queries the hot keys of a Redis instance. | ||
Key analysis | Gets real-time information about hot keys and large keys in memory. | |
Gets information about the top 20 hot keys over a period of time. | ||
Gets information about the top 20 large keys over a period of time. | ||
Gets information about the hot keys of a Redis instance. |