About Redis clusters (several concepts)

Source: Internet
Author: User
Tags redis cluster

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.