Hi list,
Marc Gravell noticed and kindly reported that in the 4.0 release notes
I forgot to mention that CLUSTER NODES output changed a bit in the new
release. Now node addresses are like this:
470b4028aba5f2cde905a2cb327e15390c86c45c 127.0.0.1:7003@17003 slave
As you can see what was before
127.0.0.1:7003 is now 127.0.0.1:7003@17003.
The change was needed in order to have a well-specified cluster bus
port for each node, now it is no longer needed for the port to be at
+10000 offset. However this required a format change.
The change was needed in order to support containers / NAT-ted
environments in general.
This is also the reason why the Redis Cluster bus binary protocol is
not compatible between 3.2 and 4.0.
Client libraries should use CLUSTER SLOTS
(
https://redis.io/commands/cluster-slots) in order to fetch the list
of nodes to interact with Redis Cluster, however if client libraries
are still using the CLUSTER NODES interface, please make sure to
upgrade your client code in order to ignore the "@<bus-port>" part.
I'm upgrading the 4.0 Change Log file to add a note about this change.
Thanks to Marc for pinging me about this.
Cheers,
Salvatore
--
Salvatore 'antirez' Sanfilippo
open source developer - Redis Labs
https://redislabs.com
"If a system is to have conceptual integrity, someone must control the
concepts."
— Fred Brooks, "The Mythical Man-Month", 1975.