v3 : Connecting to remote cluster fails with message "error connecting to 127.0.0.1:7000: dial tcp 127.0.0.1:7000: connect: connection refused"
Closed this issue · 0 comments
rakeshfromflipkart commented
"error connecting to 127.0.0.1:7000: dial tcp 127.0.0.1:7000: connect: connection refused".
I'm getting this error even though I'm trying to connect to a remote cluster, using "radix.NewCluster()".
I was able to establish connection to a single instance, using "radix.NewPool()".
I've identified function "func (c *Cluster) sync(p Client, silenceFlag bool) error{....}" in "cluster.go" to be the cause, as it uses "cluster slots" commands to get the topology and uses the address present in the response, which is always "127.0.0.1:PORT".
"
Line 423 in b6f646d
This works well when redis is running locally but fails for remote redis instances.