How to make RedisManagerPool close idle connections

Could you please share your redis.conf file? Would be much appreciated

I start thinking that the problem can be caused by bad configs on my redis instance

Thanks for your help

I’m just using the default redis config file, unchanged from installation.

So do I
Honestly, I don’t really know what else can be the source of my problem
Any ideas?

Can’t really say without being able to repro it, I can try running it again for a bit longer.

Still nothing:

8:12 PM 1 query done: value
Waiting for 6 minutes...
8:18 PM 2 query done: value
Waiting for 6 minutes...
8:24 PM 3 query done: value
Waiting for 6 minutes...
8:30 PM 4 query done: value
Waiting for 6 minutes...
8:36 PM 5 query done: value
Waiting for 6 minutes...
8:42 PM 6 query done: value
Waiting for 6 minutes...
8:48 PM 7 query done: value
Waiting for 6 minutes...
8:54 PM 8 query done: value
Waiting for 6 minutes...
9:00 PM 9 query done: value
Waiting for 6 minutes...
9:06 PM 10 query done: value
Waiting for 6 minutes...
9:12 PM 11 query done: value
Waiting for 6 minutes...
9:18 PM 12 query done: value
Waiting for 6 minutes...
9:24 PM 13 query done: value
Waiting for 6 minutes...
9:30 PM 14 query done: value
Waiting for 6 minutes...

I’ve started running it against one of my redis-servers across the world in Germany to see if I can get a repro…

Ran it for another 1.5 hours against a redis-server instance in Germany with still no issue:

9:31 PM 1 query done: value
Waiting for 6 minutes...
9:37 PM 2 query done:
Waiting for 6 minutes...
9:43 PM 3 query done:
Waiting for 6 minutes...
9:49 PM 4 query done:
Waiting for 6 minutes...
9:55 PM 5 query done:
Waiting for 6 minutes...
10:01 PM 6 query done:
Waiting for 6 minutes...
10:07 PM 7 query done:
Waiting for 6 minutes...
10:13 PM 8 query done:
Waiting for 6 minutes...
10:19 PM 9 query done:
Waiting for 6 minutes...
10:25 PM 10 query done:
Waiting for 6 minutes...
10:31 PM 11 query done:
Waiting for 6 minutes...
10:37 PM 12 query done:
Waiting for 6 minutes...
10:43 PM 13 query done:
Waiting for 6 minutes...
10:49 PM 14 query done:
Waiting for 6 minutes...
10:55 PM 15 query done:
Waiting for 6 minutes...
11:01 PM 16 query done:
Waiting for 6 minutes...

Given it was unable to establish a TCP connection in your last stack trace it’s possible your network or configuration could be faulty. It indicates the Redis Client tried to reconnect up to the default RedisConfig.DefaultRetryTimeout before giving up and throwing.

You can try extending RedisConfig.DefaultRetryTimeout for a longer time or disable connection pooling by using BasicRedisClientManager instead of RedisManagerPool.

I’ve already been using BasicRedisClientManager, just wondered if I could switch to connecion pooling
I don’t think that increasing RedisConfig.DefaultRetryTimeout may be good idea in my case (anyway thanks for this option, I’ ll keep it in mind)

I guess that I should check network configs on my Digital Ocean droplet. If I won’t find anything bad in my network configs, I’ll try to setup redis instance on another cloud VMs (Azure, AWS)

So, thank you again for being able to help me, I’ll let you know if I’ll find something interesting.