When performance issues or operation exceptions occur on a Tair (Redis OSS-compatible) instance, you can troubleshoot the issues or exceptions based on the session information on the instance. The instance session feature allows you to view the statistics about sessions between an instance and clients in real time. The statistics include client information, commands that are run, and connection durations. You can also terminate abnormal sessions based on your business requirements.
Limits on functionality
For cluster instances, you cannot retrieve session information that is generated in direct connection mode.
Procedure
Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
In the left-side navigation pane, choose .
You can view or terminate sessions for the instance and view the session statistics of the instance.
View sessions
By default, the details of all sessions are displayed. You can move the pointer over a specific parameter name to view the description of the parameter.
NoteYou can enter keywords in the search box to filter sessions.
To refresh instance sessions, click Refresh in the upper-left corner or turn on Auto Refresh. If you turn on Auto Refresh, the system automatically refreshes the page every 30 seconds.
Terminate sessions
You can terminate the specified one or more sessions at a time or terminate all sessions. To terminate one or more sessions at a time, select the specified session or press the Shift key and select multiple sessions, and then click Kill Selected in the upper-right corner. To terminate all sessions, click Kill All.
WarningThis operation may cause the corresponding connections to be closed. Proceed with caution.
View session statistics
Session statistics record the total number of clients, the number of active clients, and source IP addresses (also called IP addresses of clients) for instance sessions.
NoteIn the Statistics by Source table, click the icon to the right of a source IP address to modify its alias. In the Total Sessions column, click a value to view the details about a source IP address.
FAQ
How do I close client connections?
In the left-side navigation pane of the console, choose
. In the Instance Sessions section, select one or more sessions and click Kill Selected.