-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
StackExchange.Redis not able to detect automatic failover #65
Comments
Can you be specific about what happens in this failover scenario? Socket
|
So for a duration of approximately 1 minute i see the following error in logs: If i create a new connection in this interval, everything works as expected. If it helps here is my sample console app code: static ConnectionMultiplexer Connection
|
Any luck reproing this? |
What I understood is that when Redis Cache is under load and with the failover happening, Stackexchange.redis would try only once to be able to re-establish the connection. I have a pull request that would help to make it honor configuration.retry (which is 3 be default). Please review. |
There have been many, many improvements on connections and retry since this was logged - I'm going to close this one out. If someone can repro on a current version we'll open it right back up. |
Using StackExchange.Redis 1.2.1 I have three redis nodes, with Sentinel promoting another to master if one fails. I log into the Redis master and cause it to fail vis
The following code fixed this for me:
|
Hello
We have 2 node redis server setup where 1 node is master and the other is a slave. We have observed that StackExchange.Redis can take anything from few seconds to several minutes to reconnect to the server if master/slave failover happens in the background. i.e. if we keep on using the same ConnectionMultiplexer object as the one created before the failover was triggered we get keep on getting a connection exception. The connectionMultiplexer object takes atleast 1 minute(sometimes more) to recover from this condition. Is this expected? If we create a new ConnectionMultiplexer object during this time its able to connect to the redis server successfully
Thanks
The text was updated successfully, but these errors were encountered: