Database Autonomy Service (DAS) session management displays real-time statistics for all active sessions on an instance -- including client information, running commands, and connection duration -- and lets you terminate abnormal sessions directly from the console.
Prerequisites
Make sure you have:
A database instance connected to DAS and in the Normal Access state
Limitations
For Redis instances deployed in the cluster architecture, session information generated in direct connection mode cannot be retrieved.
View and manage sessions
Log on to the DAS console.
In the left-side navigation pane, choose Intelligent O&M Center > Instance Monitoring.
Find the target database instance and click the instance ID to open the instance details page.
In the left-side pane, click Instance Sessions.
On the Instance Sessions tab, use the Instance Sessions and Session Statistics sections to:
Terminate sessions -- End active sessions.
View session statistics -- Check summary information by access source, including total client count and active client count.
Export session data -- Download summary information and session statistics by access source.
Session parameters
The Instance Sessions section lists the following parameters. Hover over a column name for its description.
Connection identity
Parameter | Description |
| Client ID. |
| Client IP address and port number. |
| Client name. |
| File descriptor used by the socket. |
| Database the client is connected to. |
| Client type and state flags. See Client flags. |
Activity and timing
Parameter | Description |
| Most recently executed command. |
| Connection duration, in seconds. |
| Idle time, in seconds. |
Subscriptions and transactions
Parameter | Description |
| Number of subscribed channels (Pub/Sub). |
| Number of subscribed patterns (Pub/Sub). |
| Number of commands executed in the transaction. |
Buffer and memory
Parameter | Description |
| Input buffer size. |
| Available space in the input buffer. |
| Fixed output buffer size. |
| Length of the object list in the dynamic output buffer. |
| Output buffer size. |
Event loop
Parameter | Description |
| Socket readiness in the event loop: |
Client flags
The flags parameter contains one or more of the following letters, each describing the client type or current state:
Flag | Meaning |
| Replica node in |
| Replica node in normal mode. |
| Master node. |
| Executing a transaction. |
| Waiting for a blocking event. |
| Waiting for VM I/O (deprecated). |
| A watched key was modified -- |
| Connection closes after the current reply finishes writing. |
| Client was unblocked. |
| Connected through a UNIX socket. |
| Read-only mode on a cluster node. |
| Connection will close as soon as possible. |
| No flags set. |
API reference
API operation | Description |
Queries the current sessions of a Redis instance. | |
Terminates all sessions of a Redis instance. |