Updated on 2024-02-08 GMT+08:00

Sessions of an Instance

Scenarios

GeminiDB Redis allows you to manage sessions of an instance. You can log in to the GeminiDB Redis console to view sessions of each instance node.

Precautions

  • The session management function is still in the open beta test (OBT) phase. To use it, contact customer service.
  • To use this function, you need to update instances with earlier kernel minor versions to the most recent version.
  • This function is available only when the target instance node is normal.
  • Session details are displayed after a client connects to the instance.

Procedure

  1. Log in to the management console.
  2. In the service list, choose Databases > GeminiDB Redis API.
  3. On the Instances page, locate the instance whose sessions you want to view and click its name.
  4. In the navigation pane on the left, choose Sessions.
  5. On the Sessions page, select a node.

    Figure 1 Sessions

  6. View node information and choose to view sessions by source or database based on your needs. For involved parameters, see Table 1 and Table 2.

    Table 1 Session parameters

    Parameter

    Description

    Kill Selected

    Ends the selected sessions.

    Kill All

    Ends all sessions.

    Auto Refresh

    Refreshes the data automatically at a certain time interval. Auto Refresh is disabled by default. You can toggle on to enable it. After Auto Refresh is enabled, the page is refreshed every 10s by default. You can set the time interval to 10s, 30s, or 60s as required.

    addr

    Indicates the IP address and port number of the client.

    id

    Indicates the session ID.

    name

    Indicate the connection name.

    cmd

    Indicates the last executed command.

    age

    Indicates the connection duration, in seconds.

    idle

    Indicates the idle time, in seconds.

    db

    Indicates the ID of the database that is being used by the client.

    fd

    Indicates the file descriptor for sockets.

    sub

    Indicates the number of subscribed channels.

    psub

    Indicates the number of subscribed modes.

    multi

    Indicates the number of commands executed in a transaction.

    Table 2 Session statistics

    Parameter

    Description

    Summary

    Statistics items and results of a node

    Item

    Total and active clients

    • Total clients: Total client connections
    • Active clients: Active client connections

    Result

    Statistical results

    By source

    Sessions on clients connected to the node. IP addresses of top ten clients are displayed and ordered based on sessions on each client.

    By database

    IP addresses of clients connected to each database and sessions of each client. Top ten clients are displayed and ordered based on their sessions.

    Source

    Client IP address

    DB

    ID of the GeminiDB Redis database

    Total

    Total client connections