Updated on 2024-01-31 GMT+08:00

Sessions

You can manage sessions in the following scenarios:

  • If the number of sessions of an instance has reached the upper limit and the instance cannot be logged in to any longer, you can view and kill unnecessary sessions using the emergency channel function.
  • You can view history logs to learn details of the kill operations that you performed using the emergency channel function.

Precautions

  • If it can be logged in to through DAS, log in to your instance on the DAS console and enter the commands to kill the sessions in question from there.
  • Use this function in urgent conditions. All your kill operations will be logged.
  • Only Community Edition 3.4 and 4.0 instances are supported.
  • Instances in the creating, frozen or abnormal state are not supported.
  • Killing inactive sessions is not allowed.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner, and under Databases, click Data Admin Service.
  4. In the navigation pane, choose Intelligent O&M > Instance List.

    Alternatively, on the Overview page, click Go to Intelligent O&M.

  5. Choose Sessions.
  6. On the displayed Emergency Channel page, view session statistics of the current instance node by overview, host, or namespace.
  7. In the session list in the lower part of the page, sessions are sorted by running time in descending order by default. Search for sessions by setting a running time threshold or namespace.
  8. Select the session that you want to kill and click Kill.

    Figure 1 Killing a session

  9. In the Kill Session dialog box, confirm the session information and click Yes.
  10. Click History Logs to view the sessions killed through the emergency channel.

    Figure 2 Viewing history logs