Cannot initialize redis cluster connection pool idle connections in lettuce
So our problem is lazy connection creation in redis, in the config we set min idle connection count but it doesn't apply our min idle config. We expected to see that all idle connection must be created on application startup. But, when we run our application, only required amount of connection created between redis and our application. However, it is a problem for our use case because in our app we mostly get temporary peaks and when we have peaks lettuce try to create lots of connection and it decreases application performance. Is it possible to open all idle connections on application startup with lettuce-redis?
By the way, we don't use shared connection.
I also opened the same issue in lettuce-core repository, but we found out that the issue is related with spring?
https://github.com/lettuce-io/lettuce-core/discussions/2247#discussion-4552934
Is it possible to access genericObjectPool from LettuceConnectionProvider class?
Thank you.
Right now, there's no mechanism to initialize the pools. It's worth noting that we have blocking and async connection pools for data and pub/sub connections. A min idle count of 10 translates to approx 40 connections (10 each), and I'm not sure that's what you're up to.
As a temporary workaround, it could make sense that you're using reflection to obtain the LettuceConnectionProvider and acquire/release as many connections as you need.