Redis Cluster
1. The node uses a handshake to add additional nodes to the cluster in which it is located.
Cluster meet command will be a, b two nodes handshake, so AB node composition cluster, command instance: Cluster Meet <ip> <port>
2. Each node uses the CLUSTERNODE structure to save its own node information, such as creation time, slot number, node IP, node port.
3. When receiving a command, the node first determines whether the slot in the key is located in this node, and if not, send the removed command + key node port on the client.
4. If the requested key slot is being transferred from the desired node to another slot then an error will be sent to the client asking for an ask error. Indicates the slot where the requested key is being migrated.
5. If the node is offline, it migrates all slots to the slave node and continues processing requests from the node instead of the master node.
6.redis Gossip PROTOCOL,GP for inter-cluster communication is implemented by meet Ping pong publish fail message.
Books to do the book pick, summed up constantly, growth continues.
About Redis clusters (several concepts)