In Redis, frequently accessed keys are called hot keys. When a Redis database has a high number of requests, if most requests access a specific key, the traffic will become too concentrated and reach the upper limit of the physical ENI, which will cause problems or even downtime of the Redis service.
Through DBbrain's hot key analysis feature, you can find frequently accessed hot keys quickly to optimize the database performance accordingly.
Viewing Hot Key Analysis Data
- Log in to the TencentDB for Redis console.
- On the left sidebar, select Performance Optimization.
- At the top of the Performance Optimization page of DBbrain, select the target instance in the Instance ID drop-down list.
- Select the Latency Analysis > Hot Key Analysis tab and set the collection granularity to 5s, 15s, or 30s as needed in the drop-down list next to Auto-Refresh in the top-right corner.
- View the statistics of hot keys. You can switch between the real-time and historical views.
- Real-time view
By default, the access frequency of the current database's hot keys is displayed in real time.
- Historical view
Click Historical to view the statistics in the last 1, 3, or 24 hours or last 7 days. You can also click in the time selection box to query the statistics in a period of up to 7 days in the last month.