-
Notifications
You must be signed in to change notification settings - Fork 78
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 with haproxy #46
Comments
Are you using this class? It automatically recycles connection. |
Im using connection class here is the sample code
all iteration goes into the exception...... |
I got your point, unfortunately redis3m has not been built for this scenario. But if you manage to find a solution a pull request is very welcome! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using redis using haproxy and not managing connections with sentinels. Sentinels is being used for automatic fail-over, when fail-over happens redis3m returns transport_failur which I have put in try catch and haved continued once the exception is caught. But my connection object gets invalid and no other command is running on that object whereas connection with haproxy remains intact. What i want is to refresh redisContext of my connection such that my connection with haproxy does not break and redisContext gets refreshed. I have used redisFreeKeepFd and redisConnectFd but I'm unable to set new context to current connection object.
The text was updated successfully, but these errors were encountered: