-
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
connection pool size #2439
Comments
Yes, this phenomenon in the go-redis connection pool is caused by We always hope that there are idle connections in the connection pool that can be used, so we added If a connection needs to be obtained from the connection pool at this time, we will create a connection immediately instead of waiting for an idle connection. So, in extreme cases, we create |
I will send a PR to fix this issue 😄 |
Thanks a bunch for your answer and quick fix. |
fix by #2441 |
Hi
I am using redis.Client in my project with this configs.
poolsize: 10
minIdleConn: 5
maxRetries: 5
the used command is LPUSH for a list of 2000 elements.
Expected Behavior
the dial function should be called for 50 times, which is the size of poolSize.
Current Behavior
I see more than 50 connections opens. why client opens connections more than poolSize?
The text was updated successfully, but these errors were encountered: