CLIENT LIST command to view client connection information and ensure no stale connections remain. Distributed Cache supports controlling the scope of client information returned when the CLIENT LIST command is executed on a Proxy node by configuring the Proxy parameter local-client-list.Parameter Value | Command Behavior | Scenarios | Default Instance |
true | Returns only the client list of the currently connected Proxy node, with low performance overhead. | View client connections routinely | Default configuration for new instances purchased from Proxy v5.8.25 onward |
false | Aggregates and returns the client list of all Proxy nodes under the instance via the Redis Pubsub mechanism (full information). | Scenarios such as troubleshooting residual connections across all instances | Default configuration for existing instances (v5.8.24 and earlier) |
local-client-list is set to false, the CLIENT LIST command aggregates the client list of all Proxy nodes under the instance through the Redis Pubsub mechanism. In scenarios with a large number of client connections, this operation can cause excessive pressure on the master node corresponding to Redis slot 0, easily triggering outbound traffic limits and posing stability risks. It is recommended to use this cautiously during off-peak hours and revert the parameter to true after completing the investigation.CLIENT LIST command for full aggregation, thereby avoiding additional pressure on the instance. For instructions on enabling this feature, see Enable Database Audit.local-client-list parameter row in the parameter list. In the Current Value column, hover the mouse over the parameter value and click 
true or false as needed. For specific instructions on modifying parameters, see Manage Instance Parameters.
redis-cli as an example:redis-cli -h <instance-connection-address> -p <port> -a <password>
client list command to return client connection information for the corresponding scope based on the LocalClientList configuration:<instance-connection-address>:<port>> client listid=7 addr=10.0.0.12:52140 fd=8 name= age=132 idle=5 flags=N db=0 cmd=client|listid=9 addr=10.0.0.15:51022 fd=9 name= age=60 idle=0 flags=N db=0 cmd=get
true: Only client connections on the currently connected Proxy node are returned.false: Client connections on all Proxy nodes under the instance are returned, typically resulting in a larger number of entries.CLIENT LIST output corresponds to a client connection. The local-client-list parameter only affects the scope of the returned results and does not change the meaning of individual fields. The following fields are commonly used for troubleshooting connections.Field | Description |
id | The unique ID of the client connection |
addr | The IP address and port of the client, used to locate the connection source |
fd | The file descriptor corresponding to the client |
name | Client name (set via the CLIENT SETNAME command, empty if not set) |
age | The duration for which the connection has been established (unit: seconds). |
idle | The idle duration of the connection (unit: seconds), which can be used to troubleshoot connections that have been idle and inactive for a long time. |
cmd | The most recently executed command of the connection |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários