[Client Introspection] Client Count Command#1467
[Client Introspection] Client Count Command#1467sarthakaggarwal97 wants to merge 4 commits intovalkey-io:unstablefrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #1467 +/- ##
============================================
+ Coverage 70.99% 71.04% +0.04%
============================================
Files 123 123
Lines 65912 65964 +52
============================================
+ Hits 46795 46861 +66
+ Misses 19117 19103 -14
🚀 New features to boost your workflow:
|
039c38a to
c3260f5
Compare
Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
c3260f5 to
a5ca3e7
Compare
Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
hpatro
left a comment
There was a problem hiding this comment.
I would like to understand if anyone will benefit out of this much. With the recently introduced filters, it's pretty convenient to reduce the CLIENT LIST output already. And without seeing the response, would anyone just filter and would like to see count?
I know it's not a lot of code addition to the server but want us to think through if we want to support this. Users could optionally just perform a wc -l on the CLIENT LIST <filter> output.
|
I think if there is an opportunity to provide count of the box, we should explore it. It could be better than depending on clients and users to have additional logic on their end. Also, we can save on additional compute when we convert clients into their readable info strings and save up network bandwidth. wdyt? |
|
@valkey-io/valkey-committers requesting your feedback here! thank you |
|
From my point of view, I do not understand the requirement for this command. I think users could implement this function on their side. |
|
We will revisit if there will be any request for it, for now closing it out. |
With this PR, we would include a new subcommand called
CLIENT COUNT.This subcommand will be responsible for counting the number of clients, while supporting the existing filters and the newly added filters in #1466.
Sample Output:
Built on top of: #1401, #1466
Resolves: #668