-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis driver unable to recover after one of the redis cluster master is killed #802
Comments
@mayankgoyal as far as I am aware, cluster support is rolling out with 4.1.0. There is a beta build for this client here https://rubygems.org/gems/redis/versions/4.1.0.beta1 Here is the PR #716 Let me know if this helps. Also please post back if you run into issues with the 4.1.0.beta1 client, I've been waiting for cluster support for some time and cant wait to roll it out also. |
@supercaracal if you have some time to look into this, your help would be very welcome. If you can't repro we can close. |
Sure. I will try to look into this issue. |
to: @byroot As kitsirota says, the clustering is supported since
Simply, non-effective option like the above will be ignored. So it seems this issue is not a bug. |
Thanks @supercaracal |
I am using Redis driver
4.0.3
with a redis cluster (4.0.10 - 3 master/3 slaves) and have noticed that the driver caches cluster information early on a fails to update when a cluster master is killed and is failover by a slave. The driver still tries to connect to the older node indefinitely if the master never comes back up.Scenario:
rescue
to make sure::Redis::CannotConnectError
is handled and the script does not crash.I would assume that this would have worked with a
CLUSTER FAILOVER
command was issued, but not for crashes as the cluster state is never refreshed in this scenario?The text was updated successfully, but these errors were encountered: