Client Connection Issue After Redis Cluster Restart in Kubernetes #1081
Unanswered
captainpro-eng
asked this question in
Q&A
Replies: 3 comments 1 reply
-
++ @drivebyer |
Beta Was this translation helpful? Give feedback.
0 replies
-
@captainpro-eng is your issue related to this dicussion : #1080 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@captainpro-eng |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am experiencing an issue with my Redis cluster deployed in Kubernetes. When the Redis cluster is restarted, the client encounters the following exception:
Could not get a resource from the pool; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool.
Problem:
After the Redis cluster restarts, the client attempts to connect using the old pod IP addresses, which are no longer valid since the pods have received new IP addresses. This leads to connection failures and the inability to interact with the Redis cluster.
Steps to Reproduce:
Deploy a Redis cluster in a Kubernetes environment.
Connect a client (using Jedis or another library) to the Redis cluster.
Restart the Redis cluster (e.g., by scaling down and back up).
Observe that the client throws the connection exception.
Expected Behavior:
After the Redis cluster restarts, the client should automatically reconnect to the new pod IPs or hostnames, avoiding any connection exceptions.
Beta Was this translation helpful? Give feedback.
All reactions