So, currently in my JedisPoolConfig bean, I have the parameter testOnBorrow set to true. It appears this retrieving resources slower.
There was a scenario where Jedis took 30minutes to retrieve resources from Redis (calling methods (redis.clients.jedis.BinaryJedis:exists:144 and java.lang.Thread:sleep) several times before getting a resource or breaking away).
What I thought I could do was set parameter testOnBorrow to false to prevent PING calls to Redis before reading resources.
So, my questions (and I really hope I get answers) are:
- "What will setting this parameter do to my app"?
- "Is this solution really effective?"
- "Is there a better solution to this problem of slow-reading?"