Help Center/
Document Database Service/
User Guide/
DBA Assistant/
Real-Time Diagnosis/
Real-Time Sessions
Updated on 2024-08-08 GMT+08:00
Real-Time Sessions
You can manage sessions in the following scenarios:
- Emergency Channel: If the maximum number of connections for an instance has been reached and the instance cannot be logged in to, you can view and kill unnecessary sessions through the emergency channel.
- History Logs: You can view history logs to learn details of the kill operations that you performed using the emergency channel function.
Precautions
- This function is not recommended unless you really need it. All your kill operations will be logged.
- DB instances of Community Edition 3.4, 4.0, 4.2, and 4.4 are supported.
- DB instances in the creating, frozen or abnormal state are not supported.
- Killing inactive sessions is not allowed.
- Real-time sessions are generated based on currentOp of a database at the current time point. If the execution time of a session is too short (less than or equal to milliseconds), you are not advised to view real-time sessions. If you need to collect statistics on all operations, see Audit Log Policy Management.
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 > Document Database Service.
- On the Instances page, click the cluster instance name.
- In the navigation tree, choose .
- Choose Real-Time Diagnosis.
- Click Real-Time Sessions.
- On the displayed Emergency Channel page, view session statistics of the current instance node by overview, source, or namespace.
- By default, sessions are sorted and displayed in the session list in descending order by duration. You can also search for sessions by specifying Sessions lasting longer than or Namespace.
- Select the sessions that you want to kill and click Kill Session.
Figure 1 Killing a session
- In the Kill Session dialog box, confirm the session information and click Yes.
- Click History Logs to view the sessions killed through the emergency channel.
Figure 2 Viewing history logs
Parent topic: Real-Time Diagnosis
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot