DCS Redis Help Documentation

Slow Query Logs

2024-05-24 08:55:41

Redis slow query log is a feature used to log commands with an execution time over the specified threshold. When the execution time of a command executed by Redis exceeds the preset time limit, a slow query log will record the relevant information of the command for subsequent analysis and performance optimization. The management console provides a function for querying Redis slow query logs. The function can query current slow query logs and historical slow query logs.

For details about the slow statement commands involved in the query results, please go to the Redis official website.

 Note: You can modify the slow query log threshold by modifying the slowlog-log-slower-than parameter. See Modifying Instance Configuration Parameters.

Before You Begin

A DCS Redis instance that has been successfully created and is running.

Procedure

1. Log in to the Redis management console.

2. Select the region of the instance in the upper left corner of the management console.

3. On the instance list page, click the target instance name to go to the instance details management page.

4. In the instance node list, click the Redis cluster name to go to the Redis cluster management page.

5. In the tap, click Slow Query Log to go to the slow query log page.

6. Click the slow query log and select a specific Redis node to view the slow query logs. Click Clear Log to clear the current slow query log.

 

7. Click the historical slow query log, select a specific Redis node, and select a period to query the historical slow query logs.


BUi8RHN4__ja