-
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
When the network is abnormally disconnected, the connection will not be restored, and the access will generate a timeout error #1782
Comments
Can you please try the 2.2.50 release? I see in your report version 2.2.50, but in the error message it shows the running version is 2.1.30. We have several connection fixes for exactly this sort of situation to reconnect faster and more reliably in 2.2.50. |
Sorry, I actually tried the latest version of NuGet package and it still doesn't work. The logs will be posted later |
|
We had to code around this because some disconnects cause the client to never connect again, we had a clever man make some changes to our code and it now forces a new connection to be created after a number of a particular client exceptions within a short time. Of course that only works when there is a good amount of traffic 24/7. |
Forgot to follow this up - please see #1848 for the platform-level issue and how to resolve if you encounter this! |
I have some microservices hosted in a three-node docker swarm cluster, and they rely on a single-node redis instance under the same custom network.
Under normal circumstances, everything is fine. When I perform a swarm cluster test, shut down the docker daemon of the node where the redis instance is located or simply shut down that machine, a new redis instance will be created on other machines quickly, and the service will access this new redis instance through the domain name. It's no problem.
But when I change a test method and use "systemctl stop network" to directly shut down the network service of the node where the redis instance is located, even if a new redis is created on another machine, the service will never be connected to redis. A timeout error occurred. under these circumstances. I tried to use the redis client cli to connect to redis in the service container. Everything is normal again. I can set or get the key value correctly. This proves that the redis connection timeout is not caused by the swarm network.
At the same time, I tried to set keepAlive in the connection string and upgrade niget to the latest version, but these attempts did not work.
I have also noticed this problem. This one should have encountered a similar problem with me.
Do you have any suggestions?
Redis: 6.0.5
StackExchange.Redis: 2.2.50
RedisConnectionString: console-net_redis:6379,password=123456,ssl=False,abortConnect=False,keepAlive=30
Exception:
The text was updated successfully, but these errors were encountered: