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 .
Procedure
- Log in to the management console.
- Click
in the upper left corner and select a region and a project.
- Click Service List. Under Database, click Document Database Service to go to the DDS console.
- 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.
- 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.
Parent topic: Real-Time Diagnosis
- Precautions
- Procedure