-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
CLIENT SETNAME not working for idle connections. #3121
Comments
|
Hi @ljluestc , I did not find the OnClose key in the fields in the redis options. Can you confirm what version are you using? |
I have the same problem with @akshayk-ktk and didn't find any onClose hook that can be attached, as mentioned by @ljluestc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
If there are connections made by the client to the redis server and redis options client name is specified then all the connections should have the client name.
Current Behavior
Only a few connections which get used get assigned the client name.
Steps to Reproduce
Context (Environment)
Example is given from local redis but same issue I am facing in elasticache redis also. The number of connections were crossing threshold and we were getting alerts.
Wanted to check which applications were using most connections but found out that connection name is not available when doing client list.
Detailed Description
I have tried for both redis.Client and redis.ClusterClient and facing issue for both.
Not sure if this is the expected behaviour or a bug, any help here is much appreciated.
go-redis version - github.com/redis/go-redis/v9 v9.5.3
OS - MacOS Sonoma 14.6.1
Redis Server Output
Client List Output
The text was updated successfully, but these errors were encountered: