Setting a Slow Session Threshold
You can set a slow session threshold to identify sessions whose execution time is longer than the threshold. This allows you to identify abnormal sessions and kill the sessions to restore the database.
Procedure
- Log in to the management console.
- Click in the upper left corner and select a region and a project.
- Click in the upper left corner of the page and choose Databases > Relational Database Service.
- On the Instances page, click the DB instance name.
- In the navigation pane, choose DBA Assistant > Real-Time Diagnosis.
- Click the Sessions tab.
- Click Set Slow Session Threshold and specify Max. Execution Time for a Query (s).
Max. Execution Time for a Query (s) indicates how long a session has been executed before it can be considered as a slow session. The default value is 3. The value ranges from 1 to 86,400, in seconds.
Figure 1 Setting a slow session threshold
- Click OK. Sessions whose execution time exceeds the threshold are automatically displayed.
- In the Sessions area, select the target session IDs based on the instance status and service requirements, and click Kill Session.
Figure 2 Viewing the session list
The Kill Session operation ends only the selected sessions. It does not affect other sessions or services.
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot