-
Notifications
You must be signed in to change notification settings - Fork 316
bug in initialization of redis cluster slots, fixed #292
bug in initialization of redis cluster slots, fixed #292
Conversation
5 similar comments
@afshinrudgar I see a lot of lint fixes and some feature fix inside a single commit. Can you split them up for easier review? |
Also i do not really get what you are trying to solve here? I would argue that it is not up to this lib to magically change the host if the redis-cluster itself do not report back the correct ip/name back to the clients. I do not see me merging this becuase of that reason. If your redis-cluster reports back 127.0.0.1 for your nodes then you probably have used 127.0.0.1 as the ip address that you connect to when your nodes try to connect to the master. If you instead use an externally available IP address to point to your cluster nodes, redis-server will record this and clients will get back that information from |
Yes. you're right. |
I know, it was more difficult in the past to get the server to set the correct ip you wanted it to present to your clients. But it is not up to the client to solve this issue. |
Hi
I happened to stumble upon this error with
initialize
phase of RedisCluster, with fetching cluster nodes the starting node with send127.0.0.1
as host, and it should be changed to node host address.