redis icon indicating copy to clipboard operation
redis copied to clipboard

Add user-client mapping to facilitate statistics on the usage of each user connection

Open Shuen14 opened this issue 2 years ago • 3 comments

User-client mapping has been added to the server to facilitate statistics on the usage of each user connection.

Additionally, a new client count command has been added to output the connection details of each user.

Shuen14 avatar May 30 '23 02:05 Shuen14

LGTM at a glance.

Now that we have a user-client map, maybe try to improve CLIENT KILL USER <username> by using this map instead of traversing through the whole list? Also some of the ACL commands?

CharlesChen888 avatar May 30 '23 03:05 CharlesChen888

We will want the client count command to conform to the following spec: https://github.com/redis/redis/issues/12311, in that it should support similar filtering to client list and client kill.

madolson avatar Jun 13 '23 16:06 madolson

@oranagra could you please take a look? I believe this is a useful PR.

Shuen14 avatar Sep 18 '23 06:09 Shuen14

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Mar 24 '24 23:03 CLAassistant