Tair integrates the key analysis feature of Database Autonomy Service (DAS) to provide the real-time key statistics feature. The real-time key statistics feature allows you to view large keys and hotkeys in Tair instances in real time and query large keys and hotkeys that were generated within the previous four days. You can use the real-time key statistics feature to obtain key information, such as the number of elements and access frequency of keys, and optimize instances based on the key information.
Usage notes
The instance that you want to manage is a DRAM-based or persistent memory-optimized instance.
Statistical ranking mechanisms for large keys and hotkeys
Key type | Statistical ranking mechanism |
Large keys |
Note
|
Hotkeys | Tair uses efficient sorting and statistical algorithms based on the Least Recently Used (LRU) key eviction policy to identify hotkeys in an instance. Note
|
Procedure
Log on to the Tair console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
In the left-side navigation pane, choose .
Click the Real-time tab to view real-time data or click the History tab to view historical data based on your business requirements.
NoteIf the instance is a cluster instance or a read/write splitting instance, you can select a node from the Current Node drop-down list.
On the History tab, you can query the historical large keys and hotkeys within the previous four days. The time range to query cannot exceed 3 hours. For example, if the current time is 16:00 on July 15, 2021, you can query the large keys and hotkeys from 16:00 on July 11 to 16:00 on July 15. If you set the beginning of the time range to query to 16:00 on July 11, the end of the time range to query cannot be later than 19:00 on July 11.
Related API operations
DAS API operation | Description |
Queries the hotkeys and large keys in the memory in real time. | |
Queries the top 20 hotkeys over a specific period of time. | |
Queries the top 20 large keys over a specific period of time. | |
Queries the hotkeys of a Tair instance. |