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.


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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.