-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ETIMEDOUT error in Redis Sentinel, when Master loses network connectivity #1021
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
It looks like the same as #139 |
Hey, the same happens to me! ioredis tries to reconnect to the master no matter if new master is elected by sentinels. I think this should be reopened. If there is a need for any info/logs please let me know and I can provide one. |
Hi guys,
We observe a very strange reconnect issue. We have a setup with 3 Sentinels with Quorum 2 - we have 2 slaves and 1 master.
When we run our application, if we ssh to the Master node and break the network - i.e. we execute something like sudo ifconfig ens5 down where ens5 is the ethernet network, we stop the networking for this machine. The failover of the Redis runs successfully and a new master is elected.
What we observe is that it seems like ioredis does not reconnect immediately, but stalls for around 3+ minutes. We've ran our app with DEBUG=ioredis: and here are part of the logs:
You can see from the logs that there is a break between:
12-10-2019 05:33:38 and 12-10-2019 05:36:00 and ioredis logs: ioredis:connection error: Error: read ETIMEDOUT +3m that it timed-outed after 3 minutes
What we think is that the ioredis still hangs on the Socket connection to the old master and waits for a timeout to try to reconnect.
Best,
Yosif
The text was updated successfully, but these errors were encountered: