How it works...

INFO CLIENTS returns four client-related metrics. Here is the meaning of each metric:

  • connected_clients: Number of client connections. Please take note that this metric does not include the connections from slaves.
  • client_longest_output_list: The longest output list among current client connections. We will discuss the output list later in this recipe.
  • client_biggest_input_buf: The biggest input buffer among current client connections. We will discuss this metric later in this recipe.
  • blocked_clients: Number of clients pending on a blocking operation, such as BLPOP, BRPOP, BRPOPLPUSH, and so on. Don't panic when this metric is not equal to 0. It only indicates the number of clients pending by the blocking command.

INFO STATS ...

Get Redis 4.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.