Updated on 2024-05-17 GMT+08:00

Managing Sessions

You can view the client connection information of an instance and disconnect clients.

This function is supported by DCS Redis 4.0 instances and later. To query the client IP information of Redis 3.0 instances, use the Client List command.

  • This function is available only in the CN North-Beijing1, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou, and CN Southwest-Guiyang1 regions.
  • The session management page displays only the information about the external client connections. Information about the Web CLI connections is not displayed.

Procedure

  1. Log in to the DCS console.
  2. Click in the upper left corner of the management console and select the region where your instance is located.
  3. In the navigation pane, choose Cache Manager.
  4. Click a DCS instance to go to the details page.
  5. Click the Sessions tab.
  6. Information about client connections of the instance is displayed.

    • For Proxy Cluster and read/write splitting instances, connections to proxy nodes are displayed. For single-node, master/standby, and Redis Cluster instances, connections to Redis Server nodes are displayed.
    • On the page, you can specify a Redis Server or proxy node to query, enter an address, update the query results, and set columns to display.
    • For details about the meaning of each column in the query result, see https://redis.io/commands/client-list/.
    Figure 1 Managing sessions

  7. Select connections to kill and click Kill Selected to disconnect the corresponding clients. You can also click Kill All.

    If a disconnected client can reconnect, it will be automatically reconnected after being disconnected.