-
Notifications
You must be signed in to change notification settings - Fork 755
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
Input output traffic stats and command process count for each client. #327
Input output traffic stats and command process count for each client. #327
Conversation
Signed-off-by: Chen Tianjie <[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'm still standing behind my original comment in the Redis issue, which is that I want us to build a more comprehensive observability story figured out for Valkey 8. I believe this will be part of it though.
@valkey-io/core-team Please 👍 and 👎 for this since it's a major issue. |
Signed-off-by: Chen Tianjie <[email protected]>
f2c2dd7
to
94da8db
Compare
Signed-off-by: Chen Tianjie <[email protected]>
Signed-off-by: Chen Tianjie <[email protected]>
Signed-off-by: Chen Tianjie <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #327 +/- ##
===========================================
Coverage ? 68.40%
===========================================
Files ? 108
Lines ? 61571
Branches ? 0
===========================================
Hits ? 42118
Misses ? 19453
Partials ? 0
|
OK, besides the one comment about |
Signed-off-by: Chen Tianjie <[email protected]>
Signed-off-by: Chen Tianjie <[email protected]>
@madolson Any more comments? I think this PR is ready to merge. |
Corresponding doc PR to valkey-io/valkey#327. * `tot-net-in`: Total network input bytes read from this client. Added in Valkey 8.0 * `tot-net-out`: Total network output bytes sent to this client. Added in Valkey 8.0 * `tot-cmds`: Total count of commands this client executed. Added in Valkey 8.0 --------- Signed-off-by: Chen Tianjie <[email protected]>
We already have global stats for input traffic, output traffic and how many commands have been executed.
However, some users have the difficulty of locating the IP(s) which have heavy network traffic. So here some stats for single client are introduced.
These three stats are shown in
CLIENT LIST
andCLIENT INFO
.Though the metrics are handled in hot paths of the code, personally I don't think it will slow down the server. Considering all other complex operations handled nearby, this is only a small and simple operation.
However we do need to be cautious when adding more and more metrics, as discussed in redis/redis#12640, we may need to find a way to tell whether this has obvious performance degradation.