This topic describes how to query slow logs in the ApsaraDB for Redis console. This allows you to troubleshoot performance issues and optimize requests.
Prerequisites
- The database version of the ApsaraDB for Redis instance is Redis 4.0 or later, and
the latest minor version is used.
Note If the instance version does not meet the requirements, you can upgrade the instance version after assessing the compatibility with your business. For more information, see Upgrade the minor version and Upgrade the major version.
- ApsaraDB for Redis instances of Community Edition instances and performance-enhanced instances of Enhanced Edition instances are used.
Background information
Note For standard instances, only slow logs of data nodes are collected.
Slow log type | Description | Parameter |
---|---|---|
Slow logs from data nodes |
|
For more information, see Parameter overview and configuration guide. |
Slow logs from the proxy server |
|
rt_threshold_ms: specifies the threshold of slow logs from the proxy server. Default value: 500 ms.
We recommend that you set the threshold to a value that is similar to the client timeout.
The value can be 200 to 500 ms.
For more information, see Parameter overview and configuration guide. |