Reconnection to redis cluster #3081
Replies: 5 comments 1 reply
-
@Krzysztof-Lempicki Your "cluster node" may be up but your "cluster" is not up (and stable). Jedis can't automatically fix this. Please try to Google the error and see which is your exact problem and what is the solution. Here is the top result https://stackoverflow.com/questions/36125071/redis-cluster-master-slave-not-able-to-add-key |
Beta Was this translation helpful? Give feedback.
-
My situations looks like this:
What is the safest way to do this without restarting app? |
Beta Was this translation helpful? Give feedback.
-
I created custom connection handler:
and added it to my cluster but this changes nothing. Only app restart helps. |
Beta Was this translation helpful? Give feedback.
-
This change seemingly resolves your issue. But it is included in Jedis 4.2.0 and Spring has not officially published Jedis 4 support yet. You can use Spring 3.0 snapshot which supports Jedis 4.2.x. |
Beta Was this translation helpful? Give feedback.
-
I tried
To make it short: if no redis cluster is present when app start throw exception |
Beta Was this translation helpful? Give feedback.
-
I am using spring boot and jedis 2.7.1
Problem:
When my app is started before redis cluster aftere few retries
I receive:
CLUSTERDOWN Hash slot not served
or
No reachable node in cluster
If cluster is up jedis still shows me this error.
Question:
How to enable jedis to try reconnect to cluster until it is present?
Beta Was this translation helpful? Give feedback.
All reactions