Updated on 2024-10-08 GMT+08:00

Hot Key Diagnosis

A key that is frequently accessed is considered a hot key. This section describes how to use hot key diagnosis for GeminiDB Redis instances.

Constraints

  • For cluster GeminiDB Redis instances, the top 30 hot keys that are accessed most frequently can be diagnosed. For primary/standby instances, the top 20 hot keys that are accessed most frequently can be diagnosed.
  • After audit log is enabled, hot key diagnosis history will be audited.
  • A key that receives 1,000 or more queries per second (QPS) is considered a hot key. When the QPS value is greater than 6,000, the accurate value is not collected.

Procedure

  1. Log in to the GeminiDB console.
  2. In the service list, choose Databases > GeminiDB Redis API.
  3. On the Instances page, locate the target instance and click its name.
  4. In the navigation pane on the left, choose Diagnosis Analysis.
  5. Choose Hot Key Diagnosis.

    Figure 1 Hot key diagnosis

    Table 1 Parameters for hot key diagnosis

    Parameter

    Description

    Name

    Name of a hot key.

    Type

    Type of a hot key, which can be string, hash, list, set, or sorted set.

    Latest Command

    Latest command executed for the hot key.

    QPS

    Number of accesses to a hot key per second.

    NOTE:

    The maximum QPS that can be displayed is 6,000. If a QPS exceeds 6,000, the accurate value will not be collected.

    DB

    Database where a hot key is located.