node_redis_cluster icon indicating copy to clipboard operation
node_redis_cluster copied to clipboard

Other node not connected

Open lucarosty opened this issue 5 years ago • 1 comments

In the function connectToLink the link that has to be parsed is in the form :@ When the client (fastRedis or normal client) is created the string @ is used as port and the connection fail. The solution is changing the first line of code in the function with this two rows:

var ss = str.split('@'); var spl = ss[0].split(':');

lucarosty avatar Jun 13 '19 12:06 lucarosty

Another suggestion is to change the line var link = ( flags === 'myself' || flags === 'myself,master || ... with the line: var link = items[1]. This is useful if the the cluster has a balanced virtual ip

lucarosty avatar Jun 25 '19 14:06 lucarosty