-
Notifications
You must be signed in to change notification settings - Fork 13
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
minIdleConns redis client option is causing connections exhaustion #30
Comments
Hi @mkosta! I'm sorry for not getting back to you sooner. If the
You're right that this is not mentioned in the docs and I'm going to open the PR for fixing it. Generally, xk6-redis just proxies this value to the redis Golang's client, so the connections are managed inside the Redis client. However, how do you initiate the client? Is it per VU, per iteration? 🤔 |
@olegbespalov sorry i skipped the executor line)
|
@mkosta, thanks for the input! Unfortunately, since we proxy these parameters downstream, the issue still sounds more related to the Redis Go client that is used underneath the xk6-redis. After checking the client repo, I see that sometimes there are presented issue with this parameter, e.g.:
So, it could be one of the corner cases 😢 I'm still wondering if not setting (or setting to 0) |
@olegbespalov thanks. if it's a Go issue it's a Go issue) |
Noticed an issue in new redis client Options (k6 v50)
Using executor with settings like this
Connection string to open Client connection
const redisClient = new redis.Client({socket:{host:"localhost",port:6379,minIdleConns:1500,maxConnAge:10000,poolSize:20}});
If i provide any value in minIdleConns (default value not mentioned in Docs), but say 1600 more than defacto used 1353
connections are consumed non stop, and in a split second like (ok in a minute) are reaching maxClients =10k and erros are thrown obviously
However if minIdleConns not specified, connected_clients value reaches around 1353 (looks like around preallocated vus+ some) and is properly reused, not going all the way to maxClients=10k. and despite tps rate growing 1353+ connections are reused
It seems this paramater if provided causes mishandling of idle connections, if ommited from Options everything is ok
The text was updated successfully, but these errors were encountered: