In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the example analysis of Redis cluster master-slave mode, which has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.
Redis cluster master-slave mode introduction:
In order to ensure high availability of data, the concept of master-slave is combined,
One master node corresponds to one or more slave nodes (at least one).
Master is responsible for data access (write/query);
Slave is responsible for synchronizing master data and then backing it up.
When the master dies, one of the slaves of the master will be selected to replace the mater role.
This ensures the integrity of redis cluster slots.
If one of the msters and its slaves dies, the slot is incomplete and the cluster dies.
Slots (16384 slots) are allocated between masters, and if it is detected that there are not enough slots (16384 slots), the whole cluster fails.
How redis cluster master-slave mode works:
After the cluster environment deployment is complete, each master node in the cluster will periodically send ping messages to other master nodes.
If the master node receiving the ping message does not return a pong message within the specified time,
Then the master node sending the ping message marks it as a suspected fail state,
Cluster master nodes exchange state information of each master node in the cluster by sending messages to each other.
In clusters,
If more than half of the master nodes mark a master node as suspected fail,
Then the marked master node will be officially marked as failed.
At the same time, a message is broadcast to the cluster that XXX master fails
All master nodes that receive the message mark XXX master node as failed.
Thank you for reading this article carefully. I hope that the article "Example Analysis of Redis Cluster Master and Slave Mode" shared by Xiaobian will help everyone. At the same time, I hope that everyone will support you more and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.