You can call the API operations provided by Database Autonomy Service (DAS) to perform real-time key statistics and offline key analysis tasks.

Overview

  • Real-time key statistics: You can use this feature to display large keys and hotkeys in an instance in real time. You can also query large keys and hotkeys within the last four days. You can use this feature to obtain key information, such as memory usage and access frequency of keys, and optimize the instance based on the information. For more information, see Use the real-time key statistics feature.
  • Offline key analysis: You can use this feature to analyze backup files of ApsaraDB for Redis and identify large keys and dynamic hotkeys in an instance. You can also use this feature to view key information in the instance, such as the memory usage, distribution, and expiration time of keys. You can optimize the instance based on the analysis results. This feature helps you resolve issues such as insufficient memory and performance degradation that are caused by skewed distribution of keys. For more information, see Offline key analysis.

Precautions

API operations described in this topic are provided by DAS. You must use the core library and DAS SDKs to call these operations.

For more information, see Quick start.

Related API operations

CategoryOperationDescription
Offline key analysisCreateCacheAnalysisJobCreates an offline key analysis task.
DescribeCacheAnalysisJobsQueries offline key analysis tasks.
DescribeCacheAnalysisJobQueries the details of an offline key analysis task.
DescribeHotKeysQueries the hotkeys of an ApsaraDB for Redis instance.
Real-time key statisticsDescribeHotBigKeysQueries the hotkeys and large keys in the memory in real time.
DescribeTopHotKeysQueries the top 20 hotkeys over a period of time.
DescribeTopBigKeysQueries the top 20 large keys over a period of time.
DescribeHotKeysQueries the hotkeys of an ApsaraDB for Redis instance.