-
Notifications
You must be signed in to change notification settings - Fork 802
[Client Introspection] Client Count Command #1467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: unstable
Are you sure you want to change the base?
[Client Introspection] Client Count Command #1467
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 <[email protected]>
c3260f5
to
a5ca3e7
Compare
Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: Sarthak Aggarwal <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
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