1: connection configuration in redis.config

  • Timeout Timeout period for connecting to the client. The unit is second
  • TCP keepalive – 300 by default
  • Maxclients The default maximum number of client connections is 10000

2: info clients

127.0.0.1:6379[2]> INFO Clients # CLIENTS CONNECted_CLIENTS :3 client_longest_OUTput_list :0 Client_BIGgest_input_buf :0 blocked_clients:0
The name of the meaning
connected_clients Number of connected clients
client_longest_output_list The longest output list of currently connected clients
client_longest_input_buf Maximum input cache of currently connected clients
blocked_clients Number of clients waiting for the blocking command (BLPOP, BRPOP, BRPOPLPUSH)

3: the client list

127.0.0.1:6379[2]> Client list ID =121 addr=192.168.199.1:51010 fd=9 name= age=158972 idle=73961 flags=N db=2 sub=0 Psub =0 multi=-1 qbuf=0 qbuf free=0 obl=0 oll=0 omem=0 events=r CMD =get id=151 addr=127.0.0.1:48072 fd=10 name= 0 age=156536 idle=156536 flags=N db=1 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=select Id =215 addr=127.0.0.1:48079 fd=8 name= age=888 idle=0 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=client
  • Addr Indicates the address and port of the client
  • Fd File descriptor
  • Age Indicates the connection duration in seconds
  • Idle Idle duration in seconds
  • Flags Client flag
  • Db Indicates the ID of the database in use by the client
  • Sub Number of subscribed channels
  • Psub Number of subscribed modes
  • Multi Number of commands executed in a transaction
  • Qbuf query cache length (0 means no queries are waiting)
  • Qbuf-free Queries the remaining cache space (0 indicates that there is no free space)
  • Obl The length of the output cache
  • Length of olL output list (when there is no space left in the output cache, replies are queued to this queue)
  • Omem Memory usage of the output cache
  • Events File descriptor events
  • The last command executed by CMD

Reference: https://redis.io/commands/cli…