CLUSTER MEET ip port

    Time complexity: O(1)

    CLUSTER MEET is used in order to connect different Redis nodes with cluster support enabled, into a working cluster.

    So in order for a given node to accept another one into the list of nodes composing a Redis Cluster, there are only two ways:

    • The system administrator sends a command to force a node to meet another one.

    So, if we link node A with node B via CLUSTER MEET, and B with C, A and C will find their ways to handshake and create a link.

    • As a side effect of A knowing and being known by all the other nodes, it will send gossip sections in the heartbeat packets that will allow each other node to create a link with each other one, forming a full mesh in a matter of seconds, even if the cluster is large.

    Moreover does not need to be reciprocal. If I send the command to A in order to join B, I don't need to also send it to B in order to join A.

    When a given node receives a CLUSTER MEET message, the node specified in the command still does not know the node we sent the command to. So in order for the node to force the receiver to accept it as a trusted node, it sends a packet instead of a packet. The two packets have exactly the same format, but the former forces the receiver to acknowledge the node as trusted.

    *Return value