ioredis
ioredis copied to clipboard
ISSUE-1098 Allow reconnection closed nodes in cluster mode #1098
It's hard for users to tell in advance whether a node is lost temporarily or permanently so I don't think we should make this behavior configurable.
The current logic should be able to re-discover the unjoined node or did you find anything wrong?
Thanks for replying!
It's hard for users to tell in advance whether a node is lost temporarily or permanently so I don't think we should make this behavior configurable.
I agree, that's why I defensively
do this retry when and only when the node has been connected once.
The current logic should be able to re-discover the unjoined node or did you find anything wrong?
Yes, the current logic works but with a problem of performance. It will cause disconnections / reconnections of all the nodes if any single node lost connection.