question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ioredis / flaky cluster connection sequence

See original GitHub issue

Hey, I’ve finally managed to upgrade ioredis from 3 to 4 and my tests for the Cluster are behaving very flaky. At time cluster connection is established right away, at times it doesnt connect at all. I think that there is some flaw with the connection logic, but I can’t seem to understand what and why happens.

Below is the log for the failed test (couldnt connect in 30 seconds):

2018-09-27T06:04:24.116Z ioredis:cluster status: [empty] -> wait
2018-09-27T06:04:24.117Z ioredis:cluster status: wait -> connecting
2018-09-27T06:04:24.118Z ioredis:cluster:connectionPool Connecting to redis-cluster:7000 as master
2018-09-27T06:04:24.118Z ioredis:redis status[redis-cluster:7000]: [empty] -> wait
2018-09-27T06:04:24.119Z ioredis:cluster:connectionPool Connecting to redis-cluster:7001 as master
2018-09-27T06:04:24.119Z ioredis:redis status[redis-cluster:7001]: [empty] -> wait
2018-09-27T06:04:24.119Z ioredis:cluster:connectionPool Connecting to redis-cluster:7002 as master
2018-09-27T06:04:24.119Z ioredis:redis status[redis-cluster:7002]: [empty] -> wait
2018-09-27T06:04:24.120Z ioredis:cluster getting slot cache from redis-cluster:7000
2018-09-27T06:04:24.121Z ioredis:redis status[redis-cluster:7000]: wait -> connecting
2018-09-27T06:04:24.122Z ioredis:redis queue command[0] -> cluster(slots)
2018-09-27T06:04:24.122Z ioredis:redis status[redis-cluster:7002]: wait -> connecting
2018-09-27T06:04:24.126Z ioredis:redis status[172.18.0.7:7000]: connecting -> connect
2018-09-27T06:04:24.127Z ioredis:redis write command[0] -> info()
2018-09-27T06:04:24.128Z ioredis:redis status[172.18.0.7:7002]: connecting -> connect
2018-09-27T06:04:24.128Z ioredis:redis write command[0] -> info()
2018-09-27T06:04:24.130Z ioredis:redis status[172.18.0.7:7000]: connect -> ready
2018-09-27T06:04:24.130Z ioredis:connection send 1 commands in offline queue
2018-09-27T06:04:24.130Z ioredis:redis write command[0] -> cluster(slots)
2018-09-27T06:04:24.131Z ioredis:redis status[172.18.0.7:7002]: connect -> ready
2018-09-27T06:04:24.136Z ioredis:cluster:connectionPool Disconnect redis-cluster:7000 because the node does not hold any slot
2018-09-27T06:04:24.137Z ioredis:cluster:connectionPool Disconnect redis-cluster:7001 because the node does not hold any slot
2018-09-27T06:04:24.137Z ioredis:redis status[redis-cluster:7001]: wait -> close
2018-09-27T06:04:24.137Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.137Z ioredis:redis status[redis-cluster:7001]: close -> end
2018-09-27T06:04:24.137Z ioredis:cluster:connectionPool Disconnect redis-cluster:7002 because the node does not hold any slot
2018-09-27T06:04:24.138Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7000 as master
2018-09-27T06:04:24.138Z ioredis:redis status[172.18.0.7:7000]: [empty] -> wait
2018-09-27T06:04:24.138Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7001 as master
2018-09-27T06:04:24.138Z ioredis:redis status[172.18.0.7:7001]: [empty] -> wait
2018-09-27T06:04:24.138Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7002 as master
2018-09-27T06:04:24.138Z ioredis:redis status[172.18.0.7:7002]: [empty] -> wait
2018-09-27T06:04:24.139Z ioredis:cluster status: connecting -> connect
2018-09-27T06:04:24.140Z ioredis:redis queue command[0] -> cluster(info)
2018-09-27T06:04:24.142Z ioredis:redis status[172.18.0.7:7000]: ready -> close
2018-09-27T06:04:24.142Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.142Z ioredis:redis status[172.18.0.7:7000]: close -> end
2018-09-27T06:04:24.143Z ioredis:redis status[172.18.0.7:7002]: ready -> close
2018-09-27T06:04:24.143Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.143Z ioredis:redis status[172.18.0.7:7002]: close -> end
2018-09-27T06:04:24.157Z ioredis:redis status[172.18.0.7:7001]: wait -> connecting
2018-09-27T06:04:24.158Z ioredis:redis status[172.18.0.7:7001]: connecting -> connect
2018-09-27T06:04:24.158Z ioredis:redis write command[0] -> info()
2018-09-27T06:04:24.159Z ioredis:cluster Ready check failed (Error: Connection is closed.). Reconnecting...
2018-09-27T06:04:24.159Z ioredis:cluster status: connect -> disconnecting
2018-09-27T06:04:24.159Z ioredis:cluster:connectionPool Disconnect 172.18.0.7:7000 because the node does not hold any slot
2018-09-27T06:04:24.159Z ioredis:redis status[172.18.0.7:7000]: wait -> close
2018-09-27T06:04:24.160Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.160Z ioredis:redis status[172.18.0.7:7000]: close -> end
2018-09-27T06:04:24.160Z ioredis:cluster:connectionPool Disconnect 172.18.0.7:7001 because the node does not hold any slot
2018-09-27T06:04:24.160Z ioredis:cluster:connectionPool Disconnect 172.18.0.7:7002 because the node does not hold any slot
2018-09-27T06:04:24.160Z ioredis:redis status[172.18.0.7:7002]: wait -> close
2018-09-27T06:04:24.160Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.160Z ioredis:redis status[172.18.0.7:7002]: close -> end
2018-09-27T06:04:24.162Z ioredis:redis status[172.18.0.7:7001]: connect -> ready
2018-09-27T06:04:24.164Z ioredis:redis status[172.18.0.7:7001]: ready -> close
2018-09-27T06:04:24.164Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.164Z ioredis:redis status[172.18.0.7:7001]: close -> end
2018-09-27T06:04:24.164Z ioredis:cluster status: disconnecting -> close
2018-09-27T06:04:24.165Z ioredis:cluster status: close -> reconnecting
2018-09-27T06:04:24.267Z ioredis:cluster Cluster is disconnected. Retrying after 102ms
2018-09-27T06:04:24.267Z ioredis:cluster status: reconnecting -> connecting
2018-09-27T06:04:24.268Z ioredis:cluster:connectionPool Connecting to redis-cluster:7000 as master
2018-09-27T06:04:24.268Z ioredis:redis status[redis-cluster:7000]: [empty] -> wait
2018-09-27T06:04:24.268Z ioredis:cluster:connectionPool Connecting to redis-cluster:7001 as master
2018-09-27T06:04:24.268Z ioredis:redis status[redis-cluster:7001]: [empty] -> wait
2018-09-27T06:04:24.268Z ioredis:cluster:connectionPool Connecting to redis-cluster:7002 as master
2018-09-27T06:04:24.269Z ioredis:redis status[redis-cluster:7002]: [empty] -> wait
2018-09-27T06:04:24.269Z ioredis:cluster getting slot cache from redis-cluster:7000
2018-09-27T06:04:24.269Z ioredis:redis status[redis-cluster:7000]: wait -> connecting
2018-09-27T06:04:24.269Z ioredis:redis queue command[0] -> cluster(slots)
2018-09-27T06:04:24.270Z ioredis:redis status[redis-cluster:7002]: wait -> connecting
2018-09-27T06:04:24.270Z ioredis:redis status[172.18.0.7:7000]: connecting -> connect
2018-09-27T06:04:24.271Z ioredis:redis write command[0] -> info()
2018-09-27T06:04:24.271Z ioredis:redis status[172.18.0.7:7002]: connecting -> connect
2018-09-27T06:04:24.271Z ioredis:redis write command[0] -> info()
2018-09-27T06:04:24.272Z ioredis:redis status[172.18.0.7:7000]: connect -> ready
2018-09-27T06:04:24.272Z ioredis:connection send 1 commands in offline queue
2018-09-27T06:04:24.272Z ioredis:redis write command[0] -> cluster(slots)
2018-09-27T06:04:24.273Z ioredis:redis status[172.18.0.7:7002]: connect -> ready
2018-09-27T06:04:24.284Z ioredis:cluster:connectionPool Disconnect redis-cluster:7000 because the node does not hold any slot
2018-09-27T06:04:24.284Z ioredis:cluster:connectionPool Disconnect redis-cluster:7001 because the node does not hold any slot
2018-09-27T06:04:24.284Z ioredis:redis status[redis-cluster:7001]: wait -> close
2018-09-27T06:04:24.284Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.284Z ioredis:redis status[redis-cluster:7001]: close -> end
2018-09-27T06:04:24.285Z ioredis:cluster:connectionPool Disconnect redis-cluster:7002 because the node does not hold any slot
2018-09-27T06:04:24.285Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7000 as master
2018-09-27T06:04:24.285Z ioredis:redis status[172.18.0.7:7000]: [empty] -> wait
2018-09-27T06:04:24.285Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7001 as master
2018-09-27T06:04:24.285Z ioredis:redis status[172.18.0.7:7001]: [empty] -> wait
2018-09-27T06:04:24.285Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7002 as master
2018-09-27T06:04:24.285Z ioredis:redis status[172.18.0.7:7002]: [empty] -> wait
2018-09-27T06:04:24.285Z ioredis:cluster status: connecting -> connect
2018-09-27T06:04:24.288Z ioredis:cluster Ready check failed (Error: Connection is closed.). Reconnecting...
2018-09-27T06:04:24.288Z ioredis:cluster status: connect -> disconnecting
2018-09-27T06:04:24.288Z ioredis:cluster:connectionPool Disconnect redis-cluster:7000 because the node does not hold any slot
2018-09-27T06:04:24.289Z ioredis:cluster:connectionPool Disconnect redis-cluster:7001 because the node does not hold any slot
2018-09-27T06:04:24.289Z ioredis:cluster:connectionPool Disconnect redis-cluster:7002 because the node does not hold any slot
2018-09-27T06:04:24.289Z ioredis:cluster:connectionPool Disconnect 172.18.0.7:7000 because the node does not hold any slot
2018-09-27T06:04:24.289Z ioredis:redis status[172.18.0.7:7000]: wait -> close
2018-09-27T06:04:24.289Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.289Z ioredis:redis status[172.18.0.7:7000]: close -> end
2018-09-27T06:04:24.289Z ioredis:cluster:connectionPool Disconnect 172.18.0.7:7001 because the node does not hold any slot
2018-09-27T06:04:24.289Z ioredis:redis status[172.18.0.7:7001]: wait -> close
2018-09-27T06:04:24.289Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.289Z ioredis:redis status[172.18.0.7:7001]: close -> end
2018-09-27T06:04:24.289Z ioredis:cluster:connectionPool Disconnect 172.18.0.7:7002 because the node does not hold any slot
2018-09-27T06:04:24.289Z ioredis:redis status[172.18.0.7:7002]: wait -> close
2018-09-27T06:04:24.289Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.289Z ioredis:redis status[172.18.0.7:7002]: close -> end
2018-09-27T06:04:24.290Z ioredis:redis status[172.18.0.7:7000]: ready -> close
2018-09-27T06:04:24.290Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.290Z ioredis:redis status[172.18.0.7:7000]: close -> end
2018-09-27T06:04:24.290Z ioredis:redis status[172.18.0.7:7002]: ready -> close
2018-09-27T06:04:24.290Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.290Z ioredis:redis status[172.18.0.7:7002]: close -> end
2018-09-27T06:04:24.290Z ioredis:cluster status: disconnecting -> close
2018-09-27T06:04:24.290Z ioredis:cluster status: close -> reconnecting
2018-09-27T06:04:24.395Z ioredis:cluster Cluster is disconnected. Retrying after 104ms
2018-09-27T06:04:24.395Z ioredis:cluster status: reconnecting -> connecting
2018-09-27T06:04:24.395Z ioredis:cluster:connectionPool Connecting to redis-cluster:7000 as master
2018-09-27T06:04:24.395Z ioredis:redis status[redis-cluster:7000]: [empty] -> wait
2018-09-27T06:04:24.395Z ioredis:cluster:connectionPool Connecting to redis-cluster:7001 as master
2018-09-27T06:04:24.395Z ioredis:redis status[redis-cluster:7001]: [empty] -> wait
2018-09-27T06:04:24.395Z ioredis:cluster:connectionPool Connecting to redis-cluster:7002 as master
2018-09-27T06:04:24.396Z ioredis:redis status[redis-cluster:7002]: [empty] -> wait
2018-09-27T06:04:24.396Z ioredis:cluster getting slot cache from redis-cluster:7000
2018-09-27T06:04:24.396Z ioredis:redis status[redis-cluster:7000]: wait -> connecting
2018-09-27T06:04:24.396Z ioredis:redis queue command[0] -> cluster(slots)
2018-09-27T06:04:24.397Z ioredis:redis status[172.18.0.7:7000]: connecting -> connect
2018-09-27T06:04:24.397Z ioredis:redis write command[0] -> info()
2018-09-27T06:04:24.398Z ioredis:redis status[172.18.0.7:7000]: connect -> ready
2018-09-27T06:04:24.398Z ioredis:connection send 1 commands in offline queue
2018-09-27T06:04:24.398Z ioredis:redis write command[0] -> cluster(slots)
2018-09-27T06:04:24.412Z ioredis:cluster:connectionPool Disconnect redis-cluster:7000 because the node does not hold any slot
2018-09-27T06:04:24.413Z ioredis:cluster:connectionPool Disconnect redis-cluster:7001 because the node does not hold any slot
2018-09-27T06:04:24.413Z ioredis:redis status[redis-cluster:7001]: wait -> close
2018-09-27T06:04:24.413Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.413Z ioredis:redis status[redis-cluster:7001]: close -> end
2018-09-27T06:04:24.413Z ioredis:cluster:connectionPool Disconnect redis-cluster:7002 because the node does not hold any slot
2018-09-27T06:04:24.413Z ioredis:redis status[redis-cluster:7002]: wait -> close
2018-09-27T06:04:24.413Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.414Z ioredis:redis status[redis-cluster:7002]: close -> end
2018-09-27T06:04:24.414Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7000 as master
2018-09-27T06:04:24.414Z ioredis:redis status[172.18.0.7:7000]: [empty] -> wait
2018-09-27T06:04:24.414Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7001 as master
2018-09-27T06:04:24.414Z ioredis:redis status[172.18.0.7:7001]: [empty] -> wait
2018-09-27T06:04:24.414Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7002 as master
2018-09-27T06:04:24.414Z ioredis:redis status[172.18.0.7:7002]: [empty] -> wait
2018-09-27T06:04:24.414Z ioredis:cluster status: connecting -> connect
2018-09-27T06:04:24.415Z ioredis:redis status[172.18.0.7:7000]: wait -> connecting
2018-09-27T06:04:24.415Z ioredis:redis queue command[0] -> cluster(info)
2018-09-27T06:04:24.415Z ioredis:redis status[172.18.0.7:7000]: connecting -> connect
2018-09-27T06:04:24.415Z ioredis:redis write command[0] -> info()
2018-09-27T06:04:24.416Z ioredis:redis status[172.18.0.7:7000]: ready -> close
2018-09-27T06:04:24.416Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T06:04:24.416Z ioredis:redis status[172.18.0.7:7000]: close -> end
2018-09-27T06:04:24.416Z ioredis:redis status[172.18.0.7:7000]: connect -> ready
2018-09-27T06:04:24.416Z ioredis:connection send 1 commands in offline queue
2018-09-27T06:04:24.417Z ioredis:redis write command[0] -> cluster(info)
2018-09-27T06:04:24.417Z ioredis:cluster status: connect -> ready
2018-09-27T06:04:29.423Z ioredis:cluster getting slot cache from 172.18.0.7:7000
2018-09-27T06:04:29.423Z ioredis:redis write command[0] -> cluster(slots)
2018-09-27T06:04:34.423Z ioredis:cluster getting slot cache from 172.18.0.7:7002
2018-09-27T06:04:34.423Z ioredis:redis status[172.18.0.7:7002]: wait -> connecting
2018-09-27T06:04:34.423Z ioredis:redis queue command[0] -> cluster(slots)
2018-09-27T06:04:34.424Z ioredis:redis status[172.18.0.7:7002]: connecting -> connect
2018-09-27T06:04:34.425Z ioredis:redis write command[0] -> info()
2018-09-27T06:04:34.426Z ioredis:redis status[172.18.0.7:7002]: connect -> ready
2018-09-27T06:04:34.426Z ioredis:connection send 1 commands in offline queue
2018-09-27T06:04:34.426Z ioredis:redis write command[0] -> cluster(slots)
2018-09-27T06:04:39.423Z ioredis:cluster getting slot cache from 172.18.0.7:7000
2018-09-27T06:04:39.424Z ioredis:redis write command[0] -> cluster(slots)
2018-09-27T06:04:44.425Z ioredis:cluster getting slot cache from 172.18.0.7:7000
2018-09-27T06:04:44.426Z ioredis:redis write command[0] -> cluster(slots)
2018-09-27T06:04:49.427Z ioredis:cluster getting slot cache from 172.18.0.7:7001
2018-09-27T06:04:49.428Z ioredis:redis status[172.18.0.7:7001]: wait -> connecting
2018-09-27T06:04:49.428Z ioredis:redis queue command[0] -> cluster(slots)
2018-09-27T06:04:49.429Z ioredis:redis status[172.18.0.7:7001]: connecting -> connect
2018-09-27T06:04:49.430Z ioredis:redis write command[0] -> info()
2018-09-27T06:04:49.440Z ioredis:redis status[172.18.0.7:7001]: connect -> ready
2018-09-27T06:04:49.441Z ioredis:connection send 1 commands in offline queue
2018-09-27T06:04:49.441Z ioredis:redis write command[0] -> cluster(slots)

Same tests, but a successful attempt

2018-09-27T05:58:13.378Z ioredis:cluster status: [empty] -> wait
2018-09-27T05:58:13.378Z ioredis:cluster status: wait -> connecting
2018-09-27T05:58:13.379Z ioredis:cluster:connectionPool Connecting to redis-cluster:7000 as master
2018-09-27T05:58:13.379Z ioredis:redis status[redis-cluster:7000]: [empty] -> wait
2018-09-27T05:58:13.380Z ioredis:cluster:connectionPool Connecting to redis-cluster:7001 as master
2018-09-27T05:58:13.380Z ioredis:redis status[redis-cluster:7001]: [empty] -> wait
2018-09-27T05:58:13.380Z ioredis:cluster:connectionPool Connecting to redis-cluster:7002 as master
2018-09-27T05:58:13.380Z ioredis:redis status[redis-cluster:7002]: [empty] -> wait
2018-09-27T05:58:13.381Z ioredis:cluster getting slot cache from redis-cluster:7000
2018-09-27T05:58:13.382Z ioredis:redis status[redis-cluster:7000]: wait -> connecting
2018-09-27T05:58:13.382Z ioredis:redis queue command[0] -> cluster(slots)
2018-09-27T05:58:13.383Z ioredis:redis status[redis-cluster:7001]: wait -> connecting
2018-09-27T05:58:13.387Z ioredis:redis status[172.18.0.7:7000]: connecting -> connect
2018-09-27T05:58:13.387Z ioredis:redis write command[0] -> info()
2018-09-27T05:58:13.388Z ioredis:redis status[172.18.0.7:7001]: connecting -> connect
2018-09-27T05:58:13.388Z ioredis:redis write command[0] -> info()
2018-09-27T05:58:13.390Z ioredis:redis status[172.18.0.7:7000]: connect -> ready
2018-09-27T05:58:13.390Z ioredis:connection send 1 commands in offline queue
2018-09-27T05:58:13.390Z ioredis:redis write command[0] -> cluster(slots)
2018-09-27T05:58:13.391Z ioredis:redis status[172.18.0.7:7001]: connect -> ready
2018-09-27T05:58:13.392Z ioredis:cluster:connectionPool Disconnect redis-cluster:7000 because the node does not hold any slot
2018-09-27T05:58:13.392Z ioredis:cluster:connectionPool Disconnect redis-cluster:7001 because the node does not hold any slot
2018-09-27T05:58:13.393Z ioredis:cluster:connectionPool Disconnect redis-cluster:7002 because the node does not hold any slot
2018-09-27T05:58:13.393Z ioredis:redis status[redis-cluster:7002]: wait -> close
2018-09-27T05:58:13.393Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T05:58:13.393Z ioredis:redis status[redis-cluster:7002]: close -> end
2018-09-27T05:58:13.393Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7000 as master
2018-09-27T05:58:13.393Z ioredis:redis status[172.18.0.7:7000]: [empty] -> wait
2018-09-27T05:58:13.394Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7001 as master
2018-09-27T05:58:13.394Z ioredis:redis status[172.18.0.7:7001]: [empty] -> wait
2018-09-27T05:58:13.394Z ioredis:cluster:connectionPool Connecting to 172.18.0.7:7002 as master
2018-09-27T05:58:13.394Z ioredis:redis status[172.18.0.7:7002]: [empty] -> wait
2018-09-27T05:58:13.394Z ioredis:cluster status: connecting -> connect
2018-09-27T05:58:13.395Z ioredis:redis status[172.18.0.7:7001]: wait -> connecting
2018-09-27T05:58:13.395Z ioredis:redis queue command[0] -> cluster(info)
2018-09-27T05:58:13.397Z ioredis:redis status[172.18.0.7:7001]: connecting -> connect
2018-09-27T05:58:13.397Z ioredis:redis write command[0] -> info()
2018-09-27T05:58:13.398Z ioredis:redis status[172.18.0.7:7001]: ready -> close
2018-09-27T05:58:13.398Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T05:58:13.398Z ioredis:redis status[172.18.0.7:7001]: close -> end
2018-09-27T05:58:13.398Z ioredis:redis status[172.18.0.7:7002]: wait -> connecting
2018-09-27T05:58:13.398Z ioredis:redis status[172.18.0.7:7000]: ready -> close
2018-09-27T05:58:13.398Z ioredis:connection skip reconnecting since the connection is manually closed.
2018-09-27T05:58:13.398Z ioredis:redis status[172.18.0.7:7000]: close -> end
2018-09-27T05:58:13.399Z ioredis:redis status[172.18.0.7:7002]: connecting -> connect
2018-09-27T05:58:13.399Z ioredis:redis write command[0] -> info()
2018-09-27T05:58:13.399Z ioredis:redis status[172.18.0.7:7001]: connect -> ready
2018-09-27T05:58:13.399Z ioredis:connection send 1 commands in offline queue
2018-09-27T05:58:13.399Z ioredis:redis write command[0] -> cluster(info)
2018-09-27T05:58:13.400Z ioredis:redis status[172.18.0.7:7002]: connect -> ready
2018-09-27T05:58:13.400Z ioredis:cluster status: connect -> ready

Would appreciate the help. Trying myself to debug the cluster module at this point. With ioredis@3 it worked well

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
devops398commented, Jul 14, 2019

@AVVS seems like I’m experiencing this issue now, do you have any ideas how to fix it? thanks in advance! https://github.com/luin/ioredis/issues/571#issuecomment-511174412

1reaction
AVVScommented, Sep 27, 2018

Ok, so digging further, it actually seems that Ready check failed is what causes it. I assume this happened because we started ready check and then in the middle of it issued .disconnect()

Read more comments on GitHub >

github_iconTop Results From Across the Web

ioredis connection keeps resetting when connecting to local ...
I have a docker compose containerized client/server node app that is failing to create a stable connection to a redis cluster I have...
Read more >
API - ioredis - Read the Docs
This command will create a new connection to Redis and send a MONITOR command via the new connection in order to avoid disturbing...
Read more >
Redis with Node.js (ioredis) | Redis Documentation Center
In order to use Redis with Node.js, you need to install a Node.js Redis client ... This example shows how to configure ioredis...
Read more >
ioredis - npm
You can connect to a Redis Cluster like this: const Redis = require("ioredis"); const ...
Read more >
Migrating from Node Redis to Ioredis: a slightly bumpy but ...
Here's how and why we migrated from Node Redis client library to Ioredis to ... for users connected to your website, but not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found